Skip to content

Commit 39a4eec

Browse files
committed
sjparser: fix unit test
1 parent cde2407 commit 39a4eec

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

contrib/sjparser/library/sjparser/internals/token_parser.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
2626
#include <stdexcept>
2727
#include <string>
2828
#include <string_view>
29-
#include <vector>
3029

3130
namespace SJParser {
3231

@@ -48,10 +47,6 @@ template <> struct TokenTypeResolver<std::string> {
4847
using type = std::string_view;
4948
};
5049

51-
template <> struct TokenTypeResolver<double> {
52-
using type = double;
53-
};
54-
5550
template <typename TokenT>
5651
using TokenType = typename TokenTypeResolver<std::decay_t<TokenT>>::type;
5752

contrib/sjparser/tests/src/object.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ TEST(Object, RepeatingMembers) {
355355

356356
FAIL() << "No exception thrown";
357357
} catch (std::runtime_error &e) {
358-
ASSERT_STREQ("Member member appears more, than once", e.what());
358+
ASSERT_STREQ("Member member appears more than once", e.what());
359359
} catch (...) {
360360
FAIL() << "Invalid exception thrown";
361361
}

contrib/sjparser/tests/src/standalone_union.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ TEST(StandaloneUnion, RepeatingMembers) {
514514

515515
FAIL() << "No exception thrown";
516516
} catch (std::runtime_error &e) {
517-
ASSERT_STREQ("Member 1 appears more, than once", e.what());
517+
ASSERT_STREQ("Member 1 appears more than once", e.what());
518518
} catch (...) {
519519
FAIL() << "Invalid exception thrown";
520520
}

0 commit comments

Comments
 (0)