diff options
author | YounessBird <67457600+YounessBird@users.noreply.github.com> | 2022-07-14 10:21:17 +0100 |
---|---|---|
committer | YounessBird <67457600+YounessBird@users.noreply.github.com> | 2022-07-14 10:27:17 +0100 |
commit | b2dfb937e2e212ce5809c8deb5af112e1aeb7651 (patch) | |
tree | 88fc03c131b5cd2ef826e1e946e3128d477de962 | |
parent | fa031187cb0bc96be5fa114adb9ff22376858cac (diff) |
values to test for case overrides
-rw-r--r-- | tests/Settings-enum-test.ini | 2 | ||||
-rw-r--r-- | tests/Settings-enum-test.json | 3 | ||||
-rw-r--r-- | tests/Settings-enum-test.json5 | 3 | ||||
-rw-r--r-- | tests/Settings-enum-test.ron | 3 | ||||
-rw-r--r-- | tests/Settings-enum-test.toml | 2 | ||||
-rw-r--r-- | tests/Settings-enum-test.yaml | 2 | ||||
-rw-r--r-- | tests/Settings-upper-struct.toml | 3 | ||||
-rw-r--r-- | tests/Settings.ini | 2 | ||||
-rw-r--r-- | tests/Settings.json | 4 | ||||
-rw-r--r-- | tests/Settings.json5 | 4 | ||||
-rw-r--r-- | tests/Settings.ron | 4 | ||||
-rw-r--r-- | tests/Settings.toml | 4 | ||||
-rw-r--r-- | tests/Settings.yaml | 3 |
13 files changed, 36 insertions, 3 deletions
diff --git a/tests/Settings-enum-test.ini b/tests/Settings-enum-test.ini new file mode 100644 index 0000000..778e772 --- /dev/null +++ b/tests/Settings-enum-test.ini @@ -0,0 +1,2 @@ +# Test for Enum deserialization. See file_tomls.rs override tests +bar = "bar is a lowercase param"
\ No newline at end of file diff --git a/tests/Settings-enum-test.json b/tests/Settings-enum-test.json new file mode 100644 index 0000000..5616949 --- /dev/null +++ b/tests/Settings-enum-test.json @@ -0,0 +1,3 @@ +{ + "bar": "bar is a lowercase param" +} diff --git a/tests/Settings-enum-test.json5 b/tests/Settings-enum-test.json5 new file mode 100644 index 0000000..098be56 --- /dev/null +++ b/tests/Settings-enum-test.json5 @@ -0,0 +1,3 @@ +{ + bar: "bar is a lowercase param", +} diff --git a/tests/Settings-enum-test.ron b/tests/Settings-enum-test.ron new file mode 100644 index 0000000..845149d --- /dev/null +++ b/tests/Settings-enum-test.ron @@ -0,0 +1,3 @@ +( + bar: "bar is a lowercase param" +)
\ No newline at end of file diff --git a/tests/Settings-enum-test.toml b/tests/Settings-enum-test.toml new file mode 100644 index 0000000..778e772 --- /dev/null +++ b/tests/Settings-enum-test.toml @@ -0,0 +1,2 @@ +# Test for Enum deserialization. See file_tomls.rs override tests +bar = "bar is a lowercase param"
\ No newline at end of file diff --git a/tests/Settings-enum-test.yaml b/tests/Settings-enum-test.yaml new file mode 100644 index 0000000..7126b98 --- /dev/null +++ b/tests/Settings-enum-test.yaml @@ -0,0 +1,2 @@ +# Test for Enum deserialization. See file_yaml.rs override tests +bar: bar is a lowercase param diff --git a/tests/Settings-upper-struct.toml b/tests/Settings-upper-struct.toml new file mode 100644 index 0000000..341a5e0 --- /dev/null +++ b/tests/Settings-upper-struct.toml @@ -0,0 +1,3 @@ +# For override tests +FOO = "FOO should be overridden" +bar = "I am bar"
\ No newline at end of file diff --git a/tests/Settings.ini b/tests/Settings.ini index 16badd4..d707568 100644 --- a/tests/Settings.ini +++ b/tests/Settings.ini @@ -1,5 +1,7 @@ debug = true
production = false
+FOO = FOO should be overridden
+bar = I am bar
[place]
name = Torre di Pisa
longitude = 43.7224985
diff --git a/tests/Settings.json b/tests/Settings.json index babb0ba..8f2f4e5 100644 --- a/tests/Settings.json +++ b/tests/Settings.json @@ -15,5 +15,7 @@ "username": "jsmith", "email": "jsmith@localhost" } - } + }, + "FOO": "FOO should be overridden", + "bar": "I am bar" } diff --git a/tests/Settings.json5 b/tests/Settings.json5 index 4c93e42..cc2dab8 100644 --- a/tests/Settings.json5 +++ b/tests/Settings.json5 @@ -16,5 +16,7 @@ "username": "jsmith", "email": "jsmith@localhost", } - } + }, + FOO: "FOO should be overridden", + bar: "I am bar", } diff --git a/tests/Settings.ron b/tests/Settings.ron index 7882840..ed3009e 100644 --- a/tests/Settings.ron +++ b/tests/Settings.ron @@ -16,5 +16,7 @@ "username": "jsmith", "email": "jsmith@localhost" } - ) + ), + FOO: "FOO should be overridden", + bar: "I am bar" ) diff --git a/tests/Settings.toml b/tests/Settings.toml index bb53808..65b3c4e 100644 --- a/tests/Settings.toml +++ b/tests/Settings.toml @@ -8,6 +8,10 @@ code = 53 # errors boolean_s_parse = "fals" +# For override tests +FOO="FOO should be overridden" +bar="I am bar" + arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] quarks = ["up", "down", "strange", "charm", "bottom", "top"] diff --git a/tests/Settings.yaml b/tests/Settings.yaml index 8e79c29..c7b1549 100644 --- a/tests/Settings.yaml +++ b/tests/Settings.yaml @@ -12,3 +12,6 @@ place: name: John Smith username: jsmith email: jsmith@localhost +# For override tests +FOO: FOO should be overridden +bar: I am bar |