summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--serde_dhall/tests/serde.rs18
1 files changed, 17 insertions, 1 deletions
diff --git a/serde_dhall/tests/serde.rs b/serde_dhall/tests/serde.rs
index fe0bffb..78382d0 100644
--- a/serde_dhall/tests/serde.rs
+++ b/serde_dhall/tests/serde.rs
@@ -1,6 +1,8 @@
mod serde {
use serde::{Deserialize, Serialize};
- use serde_dhall::{from_str, serialize, FromDhall, StaticType, ToDhall};
+ use serde_dhall::{
+ from_str, serialize, FromDhall, StaticType, ToDhall, Value,
+ };
fn assert_de<T>(s: &str, x: T)
where
@@ -245,6 +247,20 @@ mod serde {
);
}
+ #[test]
+ #[ignore] // Way too slow
+ fn test_prelude() {
+ assert_eq!(
+ serde_dhall::from_str(
+ "https://prelude.dhall-lang.org/package.dhall"
+ )
+ .parse::<Value>()
+ .map(|_| ())
+ .map_err(|e| e.to_string()),
+ Ok(())
+ );
+ }
+
// TODO: test various builder configurations
// In particular test cloning and reusing builder
}