File tree 2 files changed +17
-16
lines changed
2 files changed +17
-16
lines changed Original file line number Diff line number Diff line change @@ -134,19 +134,3 @@ fn error_with_path() {
134
134
}
135
135
}
136
136
137
- #[ test]
138
- fn test_error_root_not_table ( ) {
139
- match Config :: builder ( )
140
- . add_source ( File :: from_str ( r#"false"# , FileFormat :: Json5 ) )
141
- . build ( )
142
- {
143
- Ok ( _) => panic ! ( "Should not merge if root is not a table" ) ,
144
- Err ( e) => match e {
145
- ConfigError :: FileParse { cause, .. } => assert_eq ! (
146
- "invalid type: boolean `false`, expected a map" ,
147
- format!( "{}" , cause)
148
- ) ,
149
- _ => panic ! ( "Wrong error: {:?}" , e) ,
150
- } ,
151
- }
152
- }
Original file line number Diff line number Diff line change @@ -94,3 +94,20 @@ fn test_error_parse() {
94
94
)
95
95
) ;
96
96
}
97
+
98
+ #[ test]
99
+ fn test_error_root_not_table ( ) {
100
+ match Config :: builder ( )
101
+ . add_source ( File :: from_str ( r#"false"# , FileFormat :: Json5 ) )
102
+ . build ( )
103
+ {
104
+ Ok ( _) => panic ! ( "Should not merge if root is not a table" ) ,
105
+ Err ( e) => match e {
106
+ ConfigError :: FileParse { cause, .. } => assert_eq ! (
107
+ "invalid type: boolean `false`, expected a map" ,
108
+ format!( "{}" , cause)
109
+ ) ,
110
+ _ => panic ! ( "Wrong error: {:?}" , e) ,
111
+ } ,
112
+ }
113
+ }
You can’t perform that action at this time.
0 commit comments