Skip to content

Commit

Permalink
Add inner quote test
Browse files Browse the repository at this point in the history
  • Loading branch information
karekoho committed Mar 7, 2022
1 parent 4ddf0c1 commit 4fd9170
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/test/json_pointer_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,11 +165,10 @@ namespace format
\"e^f\": 3,\
\"g|h\": 4,\
\"i\\j\": 5,\
\"k\"l\": 6,\
\" \": 7,\
\"m~n\": 8 }" );

// FIXME: \"k\"l\": 6 parse error

struct assert
{
const wchar_t *ref_token;
Expand All @@ -190,6 +189,7 @@ namespace format
{ L"c%d", value::value_t::number_t, 2, T_PASS },
{ L"g|h", value::value_t::number_t, 4, T_PASS },
{ L"i\\j", value::value_t::number_t, 5, T_PASS },
{ L"k\"l", value::value_t::number_t, 6, T_PASS },
{ L"/ ", value::value_t::number_t, 7, T_PASS },
{ L"m~0n", value::value_t::number_t, 8, T_PASS },
{ L"/not", value::value_t::undefined_t, 0, T_PASS },
Expand Down Expand Up @@ -223,11 +223,10 @@ namespace format
\"e^f\": 3,\
\"g|h\": 4,\
\"i\\j\": 5,\
\"k\"l\": 6,\
\" \": 7,\
\"m~n\": 8 }" );

// FIXME: \"k\"l\": 6 parse error

struct assert
{
const wchar_t *ref_token;
Expand All @@ -245,6 +244,7 @@ namespace format
{ L"c%d", value::value_t::number_t, 2, T_PASS },
{ L"g|h", value::value_t::number_t, 4, T_PASS },
{ L"i\\j", value::value_t::number_t, 5, T_PASS },
{ L"k\"l", value::value_t::number_t, 6, T_PASS },
{ L"/ ", value::value_t::number_t, 7, T_PASS },
{ L"m~0n", value::value_t::number_t, 8, T_PASS },
{ L"/not", value::value_t::undefined_t, 0, T_PASS },
Expand Down
1 change: 1 addition & 0 deletions src/test/unit_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <gtest/gtest.h>
#include <exception>
#include <algorithm>
#include <cstdio>

namespace format
{
Expand Down

0 comments on commit 4fd9170

Please sign in to comment.