Move dust tests to examples
This commit is contained in:
parent
8e92d8ee2b
commit
f531ddd1de
@ -4,42 +4,42 @@ use dust_lib::*;
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn collections() {
|
fn collections() {
|
||||||
let file_contents = read_to_string("tests/collections.ds").unwrap();
|
let file_contents = read_to_string("examples/collections.ds").unwrap();
|
||||||
|
|
||||||
eval(&file_contents).unwrap();
|
eval(&file_contents).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn list() {
|
fn list() {
|
||||||
let file_contents = read_to_string("tests/list.ds").unwrap();
|
let file_contents = read_to_string("examples/list.ds").unwrap();
|
||||||
|
|
||||||
eval(&file_contents).unwrap();
|
eval(&file_contents).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn table() {
|
fn table() {
|
||||||
let file_contents = read_to_string("tests/table.ds").unwrap();
|
let file_contents = read_to_string("examples/table.ds").unwrap();
|
||||||
|
|
||||||
eval(&file_contents).unwrap();
|
eval(&file_contents).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn variables() {
|
fn variables() {
|
||||||
let file_contents = read_to_string("tests/variables.ds").unwrap();
|
let file_contents = read_to_string("examples/variables.ds").unwrap();
|
||||||
|
|
||||||
eval(&file_contents).unwrap();
|
eval(&file_contents).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn scope() {
|
fn scope() {
|
||||||
let file_contents = read_to_string("tests/scope.ds").unwrap();
|
let file_contents = read_to_string("examples/scope.ds").unwrap();
|
||||||
|
|
||||||
eval(&file_contents).unwrap();
|
eval(&file_contents).unwrap();
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn data_formats() {
|
fn data_formats() {
|
||||||
let file_contents = read_to_string("tests/data_formats.ds").unwrap();
|
let file_contents = read_to_string("examples/data_formats.ds").unwrap();
|
||||||
|
|
||||||
eval(&file_contents).unwrap();
|
eval(&file_contents).unwrap();
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user