Rename static 'Build' methods to 'build'

This commit is contained in:
Max Brunsfeld 2015-01-14 20:54:48 -08:00
parent 34d96909d1
commit a0d9da9d5c
12 changed files with 22 additions and 22 deletions

View file

@ -8,7 +8,7 @@ START_TEST
describe("Choice", []() {
describe("constructing choices", [&]() {
it("eliminates duplicate members", [&]() {
auto rule = Choice::Build({
auto rule = Choice::build({
seq({ sym("one"), sym("two") }),
sym("three"),
seq({ sym("one"), sym("two") })
@ -21,9 +21,9 @@ describe("Choice", []() {
});
it("eliminates duplicates within nested choices", [&]() {
auto rule = Choice::Build({
auto rule = Choice::build({
seq({ sym("one"), sym("two") }),
Choice::Build({
Choice::build({
sym("three"),
seq({ sym("one"), sym("two") })
})
@ -36,9 +36,9 @@ describe("Choice", []() {
});
it("doesn't construct a choice if there's only one unique member", [&]() {
auto rule = Choice::Build({
auto rule = Choice::build({
sym("one"),
Choice::Build({
Choice::build({
sym("one"),
})
});