summaryrefslogtreecommitdiff
path: root/dhall/src
diff options
context:
space:
mode:
authorNadrieril2019-08-07 16:22:00 +0200
committerNadrieril2019-08-07 16:22:00 +0200
commitd5c3e8f2ef7438b7ac84be34cfe019ce365ae529 (patch)
tree29326ae083f3b5f13fa6327a1df182a2b8ee54cd /dhall/src
parent7827d10b431061ca9d2ef83d04a5a4e9f4c7fd47 (diff)
Forbid surrogate pairs and non-characters
Diffstat (limited to 'dhall/src')
-rw-r--r--dhall/src/tests.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/dhall/src/tests.rs b/dhall/src/tests.rs
index 2f68dac..8b32fb4 100644
--- a/dhall/src/tests.rs
+++ b/dhall/src/tests.rs
@@ -195,6 +195,8 @@ pub fn run_test(
let err = parse_file_str(&file_path).unwrap_err();
match err {
Error::Parse(_) => {}
+ Error::IO(e)
+ if e.kind() == std::io::ErrorKind::InvalidData => {}
e => panic!("Expected parse error, got: {:?}", e),
}
}