@@ -833,7 +833,7 @@ mod tests {
833833 ( Text ( "$ion_symbol_table" ) , & [ 0xE1 , 0x03 ] ) ,
834834 ( Text ( "name" ) , & [ 0xE1 , 0x04 ] ) ,
835835 ( SymbolId ( 6 ) , & [ 0xE1 , 0x06 ] ) , // SIDs are written as-is
836- ( Text ( "foo" ) , & [ 0xE1 , 0x42 ] ) , // Text is added to the symbol table and encoded as a SID
836+ ( Text ( "foo" ) , & [ 0xE1 , 0x40 ] ) , // Text is added to the symbol table and encoded as a SID
837837 ] ,
838838 )
839839 }
@@ -916,7 +916,7 @@ mod tests {
916916 0x07 , // FlexSym SID $3
917917 0x09 , // FlexSym SID $4
918918 0x0D , // FlexSym SID $6
919- 0x0A , 0x01 , // FlexSym SID $66
919+ 0x02 , 0x01 , // FlexSym SID $64
920920 ] ,
921921 )
922922 }
@@ -1010,12 +1010,12 @@ mod tests {
10101010 FieldNameEncoding :: WriteAsSymbolIds ,
10111011 & [
10121012 // New symbols
1013- ( RawSymbolRef :: Text ( "foo" ) , & [ 0x85 ] ) , // FlexUInt SID $66 ,
1014- ( RawSymbolRef :: Text ( "bar" ) , & [ 0x87 ] ) , // FlexUInt SID $67 ,
1015- ( RawSymbolRef :: Text ( "baz" ) , & [ 0x89 ] ) , // FlexUInt SID $68 ,
1013+ ( RawSymbolRef :: Text ( "foo" ) , & [ 0x81 ] ) , // FlexUInt SID $64 ,
1014+ ( RawSymbolRef :: Text ( "bar" ) , & [ 0x83 ] ) , // FlexUInt SID $65 ,
1015+ ( RawSymbolRef :: Text ( "baz" ) , & [ 0x85 ] ) , // FlexUInt SID $66 ,
10161016 // Symbols that are already in the symbol table
10171017 ( RawSymbolRef :: Text ( "name" ) , & [ 0x09 ] ) , // FlexUInt SID $4,
1018- ( RawSymbolRef :: Text ( "foo" ) , & [ 0x85 ] ) , // FlexUInt SID $66 ,
1018+ ( RawSymbolRef :: Text ( "foo" ) , & [ 0x81 ] ) , // FlexUInt SID $64 ,
10191019 ] ,
10201020 )
10211021 }
0 commit comments