use ilex::rule::*; use ilex::testing; use ilex::Context; use ilex::Lexeme; #[ilex::spec] struct Spec { null: Lexeme, #[rule("[", "]")] cm: Lexeme, } #[test] fn unrecognized() { let ctx = Context::new(); let report = ctx.new_report(); let _ = ctx .new_file("", "multiple, null, [unrecognized], chunks!~ ") .lex(Spec::get().spec(), &report); testing::check_report(&report, "tests/ui/goldens/unrecognized.stdout"); }