Skip to content

Commit

Permalink
sjparser: fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
mmd-osm committed May 27, 2024
1 parent cde2407 commit c597dda
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion contrib/sjparser/library/sjparser/internals/token_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#include <stdexcept>
#include <string>
#include <string_view>
#include <vector>

namespace SJParser {

Expand Down
2 changes: 1 addition & 1 deletion contrib/sjparser/tests/src/object.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ TEST(Object, RepeatingMembers) {

FAIL() << "No exception thrown";
} catch (std::runtime_error &e) {
ASSERT_STREQ("Member member appears more, than once", e.what());
ASSERT_STREQ("Member member appears more than once", e.what());
} catch (...) {
FAIL() << "Invalid exception thrown";
}
Expand Down
2 changes: 1 addition & 1 deletion contrib/sjparser/tests/src/standalone_union.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ TEST(StandaloneUnion, RepeatingMembers) {

FAIL() << "No exception thrown";
} catch (std::runtime_error &e) {
ASSERT_STREQ("Member 1 appears more, than once", e.what());
ASSERT_STREQ("Member 1 appears more than once", e.what());
} catch (...) {
FAIL() << "Invalid exception thrown";
}
Expand Down

0 comments on commit c597dda

Please sign in to comment.