()
| 2131 | |
| 2132 | #[test] |
| 2133 | fn strict_load_errors_on_truncated_json() { |
| 2134 | let dir = tmpdir(); |
| 2135 | let path = dir.path().join("trunc.json"); |
| 2136 | fs::write(&path, r#"{"key": "value", "incomplete"#).unwrap(); |
| 2137 | assert!(load_json_file_strict(&path).is_err()); |
| 2138 | } |
| 2139 | |
| 2140 | // ----- load_jsonc_file_strict ----- |
| 2141 |