1
0
dust/tests/dust_tests.rs

46 lines
841 B
Rust

use std::fs::read_to_string;
use dust_lib::*;
#[test]
fn collections() {
let file_contents = read_to_string("tests/collections.ds").unwrap();
eval(&file_contents).unwrap();
}
#[test]
fn list() {
let file_contents = read_to_string("tests/list.ds").unwrap();
eval(&file_contents).unwrap();
}
#[test]
fn table() {
let file_contents = read_to_string("tests/table.ds").unwrap();
eval(&file_contents).unwrap();
}
#[test]
fn variables() {
let file_contents = read_to_string("tests/variables.ds").unwrap();
eval(&file_contents).unwrap();
}
#[test]
fn scope() {
let file_contents = read_to_string("tests/scope.ds").unwrap();
eval(&file_contents).unwrap();
}
#[test]
fn data_formats() {
let file_contents = read_to_string("tests/data_formats.ds").unwrap();
eval(&file_contents).unwrap();
}