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 28, 2024
1 parent cde2407 commit 39a4eec
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 0 additions & 5 deletions 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 All @@ -48,10 +47,6 @@ template <> struct TokenTypeResolver<std::string> {
using type = std::string_view;
};

template <> struct TokenTypeResolver<double> {
using type = double;
};

template <typename TokenT>
using TokenType = typename TokenTypeResolver<std::decay_t<TokenT>>::type;

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 39a4eec

Please sign in to comment.