We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b58d4b commit 0680a28Copy full SHA for 0680a28
tests/testsuite/file-ext-with-bom.json
@@ -0,0 +1,4 @@
1
+{
2
+ "debug": true,
3
+ "production": false
4
+}
tests/testsuite/file.rs
@@ -67,6 +67,18 @@ fn test_file_ext() {
67
assert_eq!(c.get("production").ok(), Some(false));
68
}
69
70
+#[test]
71
+#[cfg(feature = "json")]
72
+fn test_file_ext_with_utf8_bom() {
73
+ let c = Config::builder()
74
+ .add_source(File::with_name("tests/testsuite/file-ext-with-bom.json"))
75
+ .build()
76
+ .unwrap();
77
+
78
+ assert_eq!(c.get("debug").ok(), Some(true));
79
+ assert_eq!(c.get("production").ok(), Some(false));
80
81
82
#[test]
83
#[cfg(feature = "json")]
84
fn test_file_second_ext() {
0 commit comments