Skip to content

Commit

Permalink
mike-lischke#136 Fix test assertion for unordered follow tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
vityaman committed Aug 12, 2024
1 parent bf5bc8a commit 09ee945
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ports/cpp/test/whitebox/WhiteboxTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ TEST(WhiteboxGrammarTests, CaretAtOneOfMultiplePossibleStates) {
auto candidates = completion.collectCandidates(2, {ctx});

EXPECT_THAT(Keys(candidates.tokens), UnorderedElementsAre(WhiteboxLexer::DOLOR));
EXPECT_THAT(candidates.tokens[WhiteboxLexer::DOLOR], UnorderedElementsAre());
EXPECT_THAT(candidates.tokens[WhiteboxLexer::DOLOR], ElementsAre());
}
}

Expand All @@ -95,7 +95,7 @@ TEST(WhiteboxGrammarTests, CaretAtOneOfMultiplePossibleStatesWithCommonFollowLis
auto candidates = completion.collectCandidates(2, {ctx});

EXPECT_THAT(Keys(candidates.tokens), UnorderedElementsAre(WhiteboxLexer::DOLOR));
EXPECT_THAT(candidates.tokens[WhiteboxLexer::DOLOR], UnorderedElementsAre(WhiteboxLexer::SIT));
EXPECT_THAT(candidates.tokens[WhiteboxLexer::DOLOR], ElementsAre(WhiteboxLexer::SIT));
}

} // namespace c3::test

0 comments on commit 09ee945

Please sign in to comment.