From 09ee945a8a6fd37e4634c619c59e481a4b7dd2b0 Mon Sep 17 00:00:00 2001 From: vityaman Date: Mon, 12 Aug 2024 12:40:21 +0300 Subject: [PATCH] #136 Fix test assertion for unordered follow tokens --- ports/cpp/test/whitebox/WhiteboxTest.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/cpp/test/whitebox/WhiteboxTest.cpp b/ports/cpp/test/whitebox/WhiteboxTest.cpp index cbc2944..a07451d 100644 --- a/ports/cpp/test/whitebox/WhiteboxTest.cpp +++ b/ports/cpp/test/whitebox/WhiteboxTest.cpp @@ -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()); } } @@ -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