Rename source files: .cpp -> .cc
This commit is contained in:
parent
31a58bc7e4
commit
a411e43484
49 changed files with 3 additions and 3 deletions
|
|
@ -1,24 +0,0 @@
|
|||
#include "compiler_spec_helper.h"
|
||||
#include "compiler/rules/rule.h"
|
||||
|
||||
using namespace rules;
|
||||
|
||||
START_TEST
|
||||
|
||||
describe("constructing rules", []() {
|
||||
rule_ptr symbol1 = sym("1");
|
||||
rule_ptr symbol2 = sym("2");
|
||||
rule_ptr symbol3 = sym("3");
|
||||
|
||||
it("constructs binary trees", [&]() {
|
||||
AssertThat(
|
||||
seq({ symbol1, symbol2, symbol3 }),
|
||||
EqualsPointer(seq({ seq({ symbol1, symbol2 }), symbol3 })));
|
||||
|
||||
AssertThat(
|
||||
choice({ symbol1, symbol2, symbol3 }),
|
||||
EqualsPointer(choice({ choice({ symbol1, symbol2 }), symbol3 })));
|
||||
});
|
||||
});
|
||||
|
||||
END_TEST
|
||||
Loading…
Add table
Add a link
Reference in a new issue