Skip to content

Commit 62d0b3d

Browse files
author
ochafik
committed
json: ws nits
1 parent f00b0b9 commit 62d0b3d

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

tests/test-json-schema-to-grammar.cpp

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
9090

9191
test({
9292
FAILURE,
93-
"invalid type type",
93+
"invalid type",
9494
R"""({
9595
"type": 123
9696
})""",
@@ -479,7 +479,7 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
479479
string ::= "\"" (
480480
[^"\\] |
481481
"\\" (["\\/bfnrt] | "u" [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F] [0-9a-fA-F])
482-
)* "\"" space
482+
)* "\"" space
483483
)"""
484484
});
485485

@@ -647,16 +647,16 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
647647
"$ref": "#/definitions/MyType",
648648
"definitions": {
649649
"MyType": {
650-
"type": "object",
651-
"properties": {
652-
"a": {
653-
"type": "string"
654-
}
655-
},
656-
"required": [
657-
"a"
658-
],
659-
"additionalProperties": false
650+
"type": "object",
651+
"properties": {
652+
"a": {
653+
"type": "string"
654+
}
655+
},
656+
"required": [
657+
"a"
658+
],
659+
"additionalProperties": false
660660
}
661661
}
662662
})""",
@@ -682,10 +682,10 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
682682
],
683683
"definitions": {
684684
"foo": {
685-
"properties": {"a": {"type": "number"}}
685+
"properties": {"a": {"type": "number"}}
686686
},
687687
"bar": {
688-
"properties": {"b": {"type": "number"}}
688+
"properties": {"b": {"type": "number"}}
689689
}
690690
},
691691
"type": "object"
@@ -719,16 +719,16 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
719719
],
720720
"definitions": {
721721
"foo": {
722-
"properties": {"a": {"type": "number"}}
722+
"properties": {"a": {"type": "number"}}
723723
},
724724
"bar": {
725-
"properties": {"b": {"type": "number"}}
725+
"properties": {"b": {"type": "number"}}
726726
},
727727
"bam": {
728-
"properties": {"c": {"type": "number"}}
728+
"properties": {"c": {"type": "number"}}
729729
},
730730
"baz": {
731-
"properties": {"d": {"type": "number"}}
731+
"properties": {"d": {"type": "number"}}
732732
}
733733
},
734734
"type": "object"
@@ -756,15 +756,15 @@ static void test_all(const std::string & lang, std::function<void(const TestCase
756756
"properties": {
757757
"number": {
758758
"type": "object",
759-
"properties": {
760-
"root": {
761-
"type": "number"
762-
}
763-
},
764-
"required": [
765-
"root"
766-
],
767-
"additionalProperties": false
759+
"properties": {
760+
"root": {
761+
"type": "number"
762+
}
763+
},
764+
"required": [
765+
"root"
766+
],
767+
"additionalProperties": false
768768
}
769769
},
770770
"required": [

0 commit comments

Comments
 (0)