-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update symbolTablesUnknownText.ion #85
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,50 @@ | ||
// import declaration, with max_id > 0 | ||
// verifies that imported symbols with undefined text are not equivalent to: | ||
// - other imported symbols with undefined text with different SIds | ||
// - local symbols with undefined text | ||
// - symbols with defined text | ||
embedded_documents::[ | ||
''' | ||
$ion_1_0 | ||
$ion_symbol_table::{ | ||
symbols:[ "foo", "bar", "baz" ] | ||
imports:[ { name: "com.amazon.ion.tests", | ||
version: 1, | ||
max_id: 2 } | ||
], | ||
symbols:[ "foo", 31 ] | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. From https://amazon-ion.github.io/ion-docs/docs/symbols.html#local-symbol-tables
What is this doing, why put a number here instead of an explicit There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This could be any non-string (or null), testing the case where"Any element of the list that is not a string must be interpreted as if it were null." I'm sure we have tests elsewhere that ensure the implementation treats all non-strings as null slots. |
||
} | ||
$10 // first imported symbol of undefined text | ||
''', | ||
''' | ||
$ion_1_0 | ||
$ion_symbol_table::{ | ||
imports:[ { name: "com.amazon.ion.tests", | ||
version: 1, | ||
max_id: 2 } | ||
], | ||
symbols:[ "foo", 31 ] | ||
} | ||
$11 // second imported symbol of undefined text | ||
''', | ||
''' | ||
$ion_1_0 | ||
$ion_symbol_table::{ | ||
imports:[ { name: "com.amazon.ion.tests", | ||
version: 1, | ||
max_id: 2 } | ||
], | ||
symbols:[ "foo", 31 ] | ||
} | ||
$10 | ||
$11 | ||
$12 | ||
$12 // local symbol with text "foo" | ||
''', | ||
''' | ||
$ion_1_0 | ||
$ion_symbol_table::{ | ||
imports:[ { name: "com.amazon.ion.tests", | ||
version: 1, | ||
max_id: 1 } | ||
max_id: 2 } | ||
], | ||
symbols:[ "foo", "bar", "baz" ] | ||
symbols:[ "foo", 31 ] | ||
} | ||
$10 | ||
$11 | ||
$12 | ||
$13 // local symbol with undefined text | ||
''', | ||
] | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The symbols documentation generally says "SID"