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
}

0 commit comments

Comments
 (0)