Clean up
This commit is contained in:
parent
a23688803c
commit
c2f0ec28ba
@ -4,7 +4,7 @@ use dust_lang::{
|
|||||||
};
|
};
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn string_as_list() {
|
fn string_as_string_list() {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
interpret("'foobar' as [str]"),
|
interpret("'foobar' as [str]"),
|
||||||
Ok(Value::List(List::with_items(vec![
|
Ok(Value::List(List::with_items(vec![
|
||||||
@ -19,7 +19,7 @@ fn string_as_list() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn string_as_list_conversion_error() {
|
fn string_as_list_error() {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
interpret("'foobar' as [float]"),
|
interpret("'foobar' as [float]"),
|
||||||
Err(Error::Validation(ValidationError::ConversionImpossible {
|
Err(Error::Validation(ValidationError::ConversionImpossible {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user