amazon-ion / ion-rust

Rust implementation of Amazon Ion
Apache License 2.0
146 stars 34 forks source link

Refer to constant for unit tests defining user macros #807

Open zslayton opened 1 month ago

zslayton commented 1 month ago
          Would this work?
            new_macro_table.macro_with_id(MacroTable::NUM_SYSTEM_MACROS),

_Originally posted by @popematt in https://github.com/amazon-ion/ion-rust/pull/801#discussion_r1712906209_

zslayton commented 1 month ago

Also https://github.com/amazon-ion/ion-rust/pull/801/files#r1712906251