@@ -102,7 +102,7 @@ static void test_grammar(const std::string & test_desc, const std::string & gram
102
102
fclose (string_file);
103
103
}
104
104
105
- fprintf (stderr, " Analyze in detail by running: ` ./gbnf-validator test-grammar-integration.grammar.gbnf test-grammar-integration.string.txt` \n " );
105
+ fprintf (stderr, " \n NOTE: Debug grammar file generated. To analyze this failure in detail, run the following command: ./gbnf-validator test-grammar-integration.grammar.gbnf test-grammar-integration.string.txt\n \n" );
106
106
} else {
107
107
fprintf (stdout, " ✅︎\n " );
108
108
}
@@ -837,9 +837,9 @@ static void test_json_schema() {
837
837
R"""( {})""" ,
838
838
// "By default, providing additional properties is valid"
839
839
// TODO: The following should pass, but currently FAILS. Additional properties should be permitted by default.
840
- // R"""({ "number": 1600, "street_name": "Pennsylvania", "street_type":"Avenue", "direction":"NW"})""",
840
+ R"""( { "number": 1600, "street_name": "Pennsylvania", "street_type":"Avenue", "direction":"NW"})""" ,
841
841
// TODO: Spaces should be permitted around enum values, but currently they fail to pass.
842
- // R"""({ "number": 1600, "street_name": "Pennsylvania", "street_type": "Avenue" })""",
842
+ R"""( { "number": 1600, "street_name": "Pennsylvania", "street_type": "Avenue" })""" ,
843
843
},
844
844
// Failing strings
845
845
{
@@ -872,17 +872,20 @@ static void test_json_schema() {
872
872
)),
873
873
// Passing strings
874
874
{
875
- // R"""({"number":1600,"street_name":"Pennsylvania","street_type":"Avenue"})""",
875
+ // TODO: Following line should pass and doesn't
876
+ R"""( {"number":1600,"street_name":"Pennsylvania","street_type":"Avenue"})""" ,
876
877
// "By default, leaving out properties is valid"
877
- // R"""({ "street_name": "Pennsylvania" })""",
878
- // R"""({ "number": 1600, "street_name": "Pennsylvania" })""",
878
+ // TODO: Following line should pass and doesn't
879
+ R"""( { "street_name": "Pennsylvania" })""" ,
880
+ // TODO: Following line should pass and doesn't
881
+ R"""( { "number": 1600, "street_name": "Pennsylvania" })""" ,
879
882
// "By extension, even an empty object is valid"
880
883
R"""( {})""" ,
881
884
// "By default, providing additional properties is valid"
882
885
// TODO: The following should pass, but currently FAILS. Additional properties should be permitted by default.
883
- // R"""({ "number": 1600, "street_name": "Pennsylvania", "street_type":"Avenue", "direction":"NW"})""",
886
+ R"""( { "number": 1600, "street_name": "Pennsylvania", "street_type":"Avenue", "direction":"NW"})""" ,
884
887
// TODO: Spaces should be permitted around enum values, but currently they fail to pass.
885
- // R"""({ "number": 1600, "street_name": "Pennsylvania", "street_type": "Avenue" })""",
888
+ R"""( { "number": 1600, "street_name": "Pennsylvania", "street_type": "Avenue" })""" ,
886
889
},
887
890
// Failing strings
888
891
{
0 commit comments