Skip to content

Commit

Permalink
(#290) build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xendalm committed Nov 23, 2023
1 parent 107d33f commit 3349cff
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integrationTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build
run: cmake --build ${{github.workspace}}/build --target=IntegrationTestsApp

- name: Test
#working-directory: ${{github.workspace}}/build/apps/TestsApp
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/metamorphicTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build
run: cmake --build ${{github.workspace}}/build --target=MetamorphicTestsApp

- name: Test
#working-directory: ${{github.workspace}}/build/apps/TestsApp
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unitTests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build
run: cmake --build ${{github.workspace}}/build --target=UnitTestsApp

- name: Test
#working-directory: ${{github.workspace}}/build/apps/TestsApp
Expand Down
16 changes: 8 additions & 8 deletions apps/UnitTestsApp/src/UnitTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,29 +63,29 @@ TEST(ParseStringTest, Test_regex_lexer) {
}

TEST(TestCaseThompsonNegative, Test_thompson_negative) {
vector<State> states;
vector<FiniteAutomaton::State> states;
for (int i = 0; i < 9; i++) {
states.emplace_back(i, set<int>{i}, std::to_string(i), false, map<alphabet_symbol, set<int>>());
states.emplace_back(i, set<int>{i}, std::to_string(i), false, map<Symbol, set<int>>());
}

states[0].set_transition(1, alphabet_symbol::epsilon());
states[0].set_transition(5, alphabet_symbol::epsilon());
states[0].set_transition(1, Symbol::epsilon());
states[0].set_transition(5, Symbol::epsilon());

states[1].set_transition(4, alphabet_symbol::epsilon());
states[1].set_transition(4, Symbol::epsilon());
states[1].set_transition(2, "a");

states[2].set_transition(3, "a");

states[3].set_transition(3, "a");
states[3].set_transition(4, alphabet_symbol::epsilon());
states[3].set_transition(4, Symbol::epsilon());

states[4].set_transition(7, alphabet_symbol::epsilon());
states[4].set_transition(7, Symbol::epsilon());

states[7].set_transition(8, "c");

states[5].set_transition(6, "b");

states[6].set_transition(7, alphabet_symbol::epsilon());
states[6].set_transition(7, Symbol::epsilon());

states[8].is_terminal = true;
FiniteAutomaton fa(0, states, {"a", "b", "c"});
Expand Down

0 comments on commit 3349cff

Please sign in to comment.