Add a test for a macro implementation using custom lex function

This commit is contained in:
josh committed 2026-07-13 22:21:02 -04:00
1 parent 2ebdeaa995
commit 0aaa44faf4
5 files changed
+299

No files matched your search

+10
View File
@@ -2164,6 +2164,16 @@ StartR start: 1, 3
StartR end: 1, 6
EOF
end
it "allows nested parses for macro expansions" do
ext = language == "cpp" ? "c" : language
write_grammar(File.read("spec/macros.#{ext}.propane"))
run_propane(language: language)
compile("spec/test_macros.#{language}", language: language)
results = run_test(language: language)
expect(results.stderr).to eq ""
expect(results.status).to eq 0
end
end
end
end