We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
test
program
1 parent 977b0a5 commit cbb0b3dCopy full SHA for cbb0b3d
tests/test/mod.rs
@@ -55,6 +55,11 @@ macro_rules! test {
55
let (program, goals) = parse_test_data!(program $program $($goals)*);
56
solve_goal(program, goals, false)
57
}};
58
+
59
+ // If `program` is omitted, default to an empty one.
60
+ ($($goals:tt)*) => {
61
+ test!(program {} $($goals)*)
62
+ };
63
}
64
65
macro_rules! parse_test_data {
0 commit comments