Skip to content

Commit b2dfb93

Browse files
committed
values to test for case overrides
1 parent fa03118 commit b2dfb93

13 files changed

+36
-3
lines changed

tests/Settings-enum-test.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Test for Enum deserialization. See file_tomls.rs override tests
2+
bar = "bar is a lowercase param"

tests/Settings-enum-test.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"bar": "bar is a lowercase param"
3+
}

tests/Settings-enum-test.json5

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
bar: "bar is a lowercase param",
3+
}

tests/Settings-enum-test.ron

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
(
2+
bar: "bar is a lowercase param"
3+
)

tests/Settings-enum-test.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Test for Enum deserialization. See file_tomls.rs override tests
2+
bar = "bar is a lowercase param"

tests/Settings-enum-test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Test for Enum deserialization. See file_yaml.rs override tests
2+
bar: bar is a lowercase param

tests/Settings-upper-struct.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# For override tests
2+
FOO = "FOO should be overridden"
3+
bar = "I am bar"

tests/Settings.ini

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
debug = true
22
production = false
3+
FOO = FOO should be overridden
4+
bar = I am bar
35
[place]
46
name = Torre di Pisa
57
longitude = 43.7224985

tests/Settings.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@
1515
"username": "jsmith",
1616
"email": "jsmith@localhost"
1717
}
18-
}
18+
},
19+
"FOO": "FOO should be overridden",
20+
"bar": "I am bar"
1921
}

tests/Settings.json5

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@
1616
"username": "jsmith",
1717
"email": "jsmith@localhost",
1818
}
19-
}
19+
},
20+
FOO: "FOO should be overridden",
21+
bar: "I am bar",
2022
}

tests/Settings.ron

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,7 @@
1616
"username": "jsmith",
1717
"email": "jsmith@localhost"
1818
}
19-
)
19+
),
20+
FOO: "FOO should be overridden",
21+
bar: "I am bar"
2022
)

tests/Settings.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ code = 53
88
# errors
99
boolean_s_parse = "fals"
1010

11+
# For override tests
12+
FOO="FOO should be overridden"
13+
bar="I am bar"
14+
1115
arr = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
1216
quarks = ["up", "down", "strange", "charm", "bottom", "top"]
1317

tests/Settings.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,6 @@ place:
1212
name: John Smith
1313
username: jsmith
1414
email: jsmith@localhost
15+
# For override tests
16+
FOO: FOO should be overridden
17+
bar: I am bar

0 commit comments

Comments
 (0)