amazon-ion / ion-rust

Rust implementation of Amazon Ion
Apache License 2.0
148 stars 36 forks source link

Refer to constant for unit tests defining user macros #807

Open zslayton opened 3 months ago

zslayton commented 3 months 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 3 months ago

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