summaryrefslogtreecommitdiff
path: root/src/eval/value.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/eval/value.rs')
-rw-r--r--src/eval/value.rs10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/eval/value.rs b/src/eval/value.rs
index f1ffc6de..16c3dca8 100644
--- a/src/eval/value.rs
+++ b/src/eval/value.rs
@@ -530,10 +530,7 @@ mod tests {
dict.expect::<String>("", Span::ZERO, &mut f),
Some("hi".to_string())
);
- assert_eq!(f.diagnostics, [error!(
- Span::ZERO,
- "expected string, found bool"
- )]);
+ assert_eq!(f.diags, [error!(Span::ZERO, "expected string, found bool")]);
assert_eq!(dict.len(), 1);
}
@@ -545,10 +542,7 @@ mod tests {
dict.insert("hi", entry(Value::Bool(true)));
assert_eq!(dict.take::<bool>(), Some(false));
assert_eq!(dict.take_key::<f64>("hi", &mut f), None);
- assert_eq!(f.diagnostics, [error!(
- Span::ZERO,
- "expected float, found bool"
- )]);
+ assert_eq!(f.diags, [error!(Span::ZERO, "expected float, found bool")]);
assert!(dict.is_empty());
}