diff --git a/tests/test-grammar-integration.cpp b/tests/test-grammar-integration.cpp index baf19e8d7..94e3fa164 100644 --- a/tests/test-grammar-integration.cpp +++ b/tests/test-grammar-integration.cpp @@ -1337,8 +1337,8 @@ static void test_json_schema() { { R"""({})""", R"""({"common": "", "a": "", "b": ""})""", - R"""({"a": "", "b": ""})""", - R"""({"common": "", "a": "", "b": "", "c": "", "d": ""})""", + R"""({"a": 0, "b": 0})""", + R"""({"common": 0, "a": "0", "b": 0, "c": 0, "d": 0})""", } ); } diff --git a/tests/test-json-schema-to-grammar.cpp b/tests/test-json-schema-to-grammar.cpp index 0d7579f34..10278f5bd 100755 --- a/tests/test-json-schema-to-grammar.cpp +++ b/tests/test-json-schema-to-grammar.cpp @@ -1218,6 +1218,48 @@ static void test_all(const std::string & lang, std::function