summaryrefslogtreecommitdiff
path: root/serde_dhall/tests
diff options
context:
space:
mode:
Diffstat (limited to 'serde_dhall/tests')
-rw-r--r--serde_dhall/tests/de.rs6
-rw-r--r--serde_dhall/tests/version_numbers.rs5
2 files changed, 7 insertions, 4 deletions
diff --git a/serde_dhall/tests/de.rs b/serde_dhall/tests/de.rs
index b201e4f..f28b265 100644
--- a/serde_dhall/tests/de.rs
+++ b/serde_dhall/tests/de.rs
@@ -1,10 +1,10 @@
use serde::Deserialize;
-use serde_dhall::{from_str, from_str_auto_type, StaticType};
+use serde_dhall::{from_str, from_str_static_type, StaticType};
#[test]
fn test_de_typed() {
fn parse<T: serde_dhall::Deserialize + StaticType>(s: &str) -> T {
- from_str_auto_type(s).unwrap()
+ from_str_static_type(s).unwrap()
}
assert_eq!(parse::<bool>("True"), true);
@@ -52,7 +52,7 @@ fn test_de_typed() {
}
assert_eq!(parse::<Baz>("< X | Y: Integer >.X"), Baz::X);
- assert!(from_str_auto_type::<Baz>("< X | Y: Integer >.Y").is_err());
+ assert!(from_str_static_type::<Baz>("< X | Y: Integer >.Y").is_err());
}
#[test]
diff --git a/serde_dhall/tests/version_numbers.rs b/serde_dhall/tests/version_numbers.rs
index 97254a9..8307e47 100644
--- a/serde_dhall/tests/version_numbers.rs
+++ b/serde_dhall/tests/version_numbers.rs
@@ -10,5 +10,8 @@ fn test_html_root_url() {
#[test]
fn test_readme_mentions_version() {
- version_sync::assert_contains_regex!("../README.md", "^#### \\[{version}\\]");
+ version_sync::assert_contains_regex!(
+ "../README.md",
+ "^#### \\[{version}\\]"
+ );
}