-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add resources to jvm-native, embedded resources, add back common
- Loading branch information
Showing
58 changed files
with
1,337 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
a=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
b=2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# | ||
foo = bar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include "cycle.conf" |
45 changes: 45 additions & 0 deletions
45
sconfig/jvm-native/src/test/resources/equiv01/comments.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ // These are some integers | ||
"ints" : { # we can comment them with # too | ||
"fortyTwo" : 42, ## double-# ! | ||
"fortyTwoAgain" : 42 # { } | ||
}, | ||
######## COMMENT COMMENT COMMENT | ||
/// I COMMENT YOU | ||
"floats" : { | ||
"fortyTwoPointOne" : 42.1, | ||
"fortyTwoPointOneAgain" : 42.1 | ||
// I CAN HAS COMMENT | ||
}, | ||
|
||
"strings" : { | ||
"abcd" : // I got yr comment right here | ||
"abcd", | ||
"abcdAgain" : "abcd", | ||
"a" : "a", | ||
"b" : "b", | ||
"c" : "c", | ||
"d" : "d", | ||
"concatenated" # more to say? | ||
: "null bar 42 baz true 3.14 hi" | ||
}, | ||
|
||
"arrays" : { | ||
"empty" : [], | ||
"1" : [ 1 ], | ||
"12" : [1, 2], | ||
"123" : [1, 2, 3], | ||
"ofString" : [ "a", "b", "c" ] | ||
}, | ||
|
||
"booleans" : { | ||
"true" : true, | ||
"trueAgain" : true, | ||
"false" : false, | ||
"falseAgain" : false | ||
}, | ||
|
||
"nulls" : { | ||
"null" : null, | ||
"nullAgain" : null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"ints" = { | ||
"fortyTwo" = 42, | ||
"fortyTwoAgain" = 42 | ||
}, | ||
|
||
"floats" = { | ||
"fortyTwoPointOne" = 42.1, | ||
"fortyTwoPointOneAgain" = 42.1 | ||
}, | ||
|
||
"strings" = { | ||
"abcd" = "abcd", | ||
"abcdAgain" = "abcd", | ||
"a" = "a", | ||
"b" = "b", | ||
"c" = "c", | ||
"d" = "d", | ||
"concatenated" = "null bar 42 baz true 3.14 hi" | ||
}, | ||
|
||
"arrays" = { | ||
"empty" = [], | ||
"1" = [ 1 ], | ||
"12" = [1, 2], | ||
"123" = [1, 2, 3], | ||
"ofString" = [ "a", "b", "c" ] | ||
}, | ||
|
||
"booleans" = { | ||
"true" = true, | ||
"trueAgain" = true, | ||
"false" = false, | ||
"falseAgain" = false | ||
}, | ||
|
||
"nulls" = { | ||
"null" = null, | ||
"nullAgain" = null | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
sconfig/jvm-native/src/test/resources/equiv01/no-commas.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
{ | ||
"ints" : { | ||
"fortyTwo" : 42 | ||
"fortyTwoAgain" : 42 | ||
} | ||
|
||
"floats" : { | ||
"fortyTwoPointOne" : 42.1 | ||
"fortyTwoPointOneAgain" : 42.1 | ||
} | ||
|
||
"strings" : { | ||
"abcd" : "abcd" | ||
"abcdAgain" : "abcd" | ||
"a" : "a" | ||
"b" : "b" | ||
"c" : "c" | ||
"d" : "d" | ||
"concatenated" : "null bar 42 baz true 3.14 hi" | ||
} | ||
|
||
"arrays" : { | ||
"empty" : [] | ||
"1" : [ 1 ] | ||
"12" : [1 | ||
2] | ||
"123" : [1 | ||
2 | ||
3 ] | ||
"ofString" : [ | ||
|
||
"a" | ||
"b" | ||
"c" | ||
|
||
] | ||
} | ||
|
||
"booleans" : { | ||
|
||
"true" : true | ||
|
||
"trueAgain" : true | ||
|
||
"false" : false | ||
|
||
"falseAgain" : false | ||
|
||
} | ||
|
||
"nulls" : { | ||
"null" : null | ||
"nullAgain" : null | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
sconfig/jvm-native/src/test/resources/equiv01/no-root-braces.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
"ints" : { | ||
"fortyTwo" : 42, | ||
"fortyTwoAgain" : 42 | ||
}, | ||
|
||
"floats" : { | ||
"fortyTwoPointOne" : 42.1, | ||
"fortyTwoPointOneAgain" : 42.1 | ||
}, | ||
|
||
"strings" : { | ||
"abcd" : "abcd", | ||
"abcdAgain" : "abcd", | ||
"a" : "a", | ||
"b" : "b", | ||
"c" : "c", | ||
"d" : "d", | ||
"concatenated" : "null bar 42 baz true 3.14 hi" | ||
}, | ||
|
||
"arrays" : { | ||
"empty" : [], | ||
"1" : [ 1 ], | ||
"12" : [1, 2], | ||
"123" : [1, 2, 3], | ||
"ofString" : [ "a", "b", "c" ] | ||
}, | ||
|
||
"booleans" : { | ||
"true" : true, | ||
"trueAgain" : true, | ||
"false" : false, | ||
"falseAgain" : false | ||
}, | ||
|
||
"nulls" : { | ||
"null" : null, | ||
"nullAgain" : null | ||
} | ||
|
1 change: 1 addition & 0 deletions
1
sconfig/jvm-native/src/test/resources/equiv01/no-whitespace.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"ints":{"fortyTwo":42,"fortyTwoAgain":42},"floats":{"fortyTwoPointOne":42.1,"fortyTwoPointOneAgain":42.1},"strings":{"abcd":"abcd","abcdAgain":"abcd","a":"a","b":"b","c":"c","d":"d","concatenated":"null bar 42 baz true 3.14 hi"},"arrays":{"empty":[],"1":[1],"12":[1,2],"123":[1,2,3],"ofString":["a","b","c"]},"booleans":{"true":true,"trueAgain":true,"false":false,"falseAgain":false},"nulls":{"null":null,"nullAgain":null}} |
44 changes: 44 additions & 0 deletions
44
sconfig/jvm-native/src/test/resources/equiv01/omit-colons.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"ints" { | ||
"fortyTwo" : 42, | ||
"fortyTwoAgain" : 42 | ||
}, | ||
|
||
"floats" | ||
{ | ||
"fortyTwoPointOne" : 42.1, | ||
"fortyTwoPointOneAgain" : 42.1 | ||
}, | ||
|
||
"strings" | ||
|
||
{ | ||
"abcd" : "abcd", | ||
"abcdAgain" : "abcd", | ||
"a" : "a", | ||
"b" : "b", | ||
"c" : "c", | ||
"d" : "d", | ||
"concatenated" : "null bar 42 baz true 3.14 hi" | ||
}, | ||
|
||
"arrays" { | ||
"empty" : [], | ||
"1" : [ 1 ], | ||
"12" : [1, 2], | ||
"123" : [1, 2, 3], | ||
"ofString" : [ "a", "b", "c" ] | ||
}, | ||
|
||
"booleans" { | ||
"true" : true, | ||
"trueAgain" : true, | ||
"false" : false, | ||
"falseAgain" : false | ||
}, | ||
|
||
"nulls" { | ||
"null" : null, | ||
"nullAgain" : null | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
sconfig/jvm-native/src/test/resources/equiv01/original.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"ints" : { | ||
"fortyTwo" : 42, | ||
"fortyTwoAgain" : 42 | ||
}, | ||
|
||
"floats" : { | ||
"fortyTwoPointOne" : 42.1, | ||
"fortyTwoPointOneAgain" : 42.1 | ||
}, | ||
|
||
"strings" : { | ||
"abcd" : "abcd", | ||
"abcdAgain" : "abcd", | ||
"a" : "a", | ||
"b" : "b", | ||
"c" : "c", | ||
"d" : "d", | ||
"concatenated" : "null bar 42 baz true 3.14 hi" | ||
}, | ||
|
||
"arrays" : { | ||
"empty" : [], | ||
"1" : [ 1 ], | ||
"12" : [1, 2], | ||
"123" : [1, 2, 3], | ||
"ofString" : [ "a", "b", "c" ] | ||
}, | ||
|
||
"booleans" : { | ||
"true" : true, | ||
"trueAgain" : true, | ||
"false" : false, | ||
"falseAgain" : false | ||
}, | ||
|
||
"nulls" : { | ||
"null" : null, | ||
"nullAgain" : null | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
sconfig/jvm-native/src/test/resources/equiv01/path-keys.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
ints.fortyTwo : 42, | ||
ints.fortyTwoAgain : 42, | ||
|
||
floats.fortyTwoPointOne : 42.1, | ||
floats.fortyTwoPointOneAgain : 42.1, | ||
|
||
strings.abcd : "abcd", | ||
strings.abcdAgain : "abcd", | ||
strings.a : "a", | ||
strings.b : "b", | ||
strings.c : "c", | ||
strings.d : "d", | ||
strings.concatenated : "null bar 42 baz true 3.14 hi", | ||
|
||
arrays."empty" : [], | ||
arrays."1" : [ 1 ], | ||
arrays.12 : [1, 2], | ||
arrays.123 : [1, 2, 3], | ||
arrays.ofString : [ "a", "b", "c" ], | ||
|
||
booleans.true : true, | ||
booleans.trueAgain : true, | ||
booleans.false : false, | ||
booleans.falseAgain : false, | ||
|
||
nulls.null : null, | ||
nulls.nullAgain : null | ||
} |
37 changes: 37 additions & 0 deletions
37
sconfig/jvm-native/src/test/resources/equiv01/properties-style.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# this file is in a no-braces java properties style, | ||
# but it's a .conf file with json-style escaping, | ||
# not a Java properties file. | ||
# lots of playing with whitespace and commas | ||
# in here to test various cases; don't copy | ||
# this as exemplary, it has gratuitously | ||
# stupid formatting. | ||
ints.fortyTwo=42 | ||
ints.fortyTwoAgain = 42 // whitespace ignored around the = | ||
floats.fortyTwoPointOne=42.1 | ||
floats.fortyTwoPointOneAgain:42.1 // colon is fine too | ||
strings.abcd=abcd | ||
strings.abcdAgain : "abcd", // colon and quotes and comma! | ||
strings.a=a | ||
strings.b=b | ||
strings.c="c", | ||
strings.d:"d" | ||
strings.concatenated=null bar 42 baz true 3.14 hi # this gets squished to a string | ||
arrays.empty=[] | ||
arrays.1 : [ 1 ] | ||
# it's allowed to omit commas in arrays if you have newlines | ||
arrays.12 = [ | ||
1 | ||
2 | ||
] | ||
arrays.123 = [1, | ||
2 | ||
3] | ||
arrays.ofString = [ "a", "b", "c" ] | ||
booleans.true=true | ||
booleans.trueAgain=${booleans.true} | ||
booleans.false=false | ||
# you could quote keys, though here it's pointless | ||
# since the key contains no special characters | ||
"booleans"."falseAgain" : ${booleans.false}, | ||
nulls.null=${nulls.nullAgain} | ||
nulls.nullAgain=null |
Oops, something went wrong.