From f531ddd1deafec595e8dc11a100af462a6664ad7 Mon Sep 17 00:00:00 2001 From: Jeff Date: Tue, 12 Sep 2023 11:58:57 -0400 Subject: [PATCH] Move dust tests to examples --- {tests => examples}/collections.ds | 0 {tests => examples}/data_formats.ds | 0 {tests => examples}/list.ds | 0 {tests => examples}/scope.ds | 0 {tests => examples}/table.ds | 0 {tests => examples}/variables.ds | 0 tests/{dust_tests.rs => dust_examples.rs} | 12 ++++++------ 7 files changed, 6 insertions(+), 6 deletions(-) rename {tests => examples}/collections.ds (100%) rename {tests => examples}/data_formats.ds (100%) rename {tests => examples}/list.ds (100%) rename {tests => examples}/scope.ds (100%) rename {tests => examples}/table.ds (100%) rename {tests => examples}/variables.ds (100%) rename tests/{dust_tests.rs => dust_examples.rs} (50%) diff --git a/tests/collections.ds b/examples/collections.ds similarity index 100% rename from tests/collections.ds rename to examples/collections.ds diff --git a/tests/data_formats.ds b/examples/data_formats.ds similarity index 100% rename from tests/data_formats.ds rename to examples/data_formats.ds diff --git a/tests/list.ds b/examples/list.ds similarity index 100% rename from tests/list.ds rename to examples/list.ds diff --git a/tests/scope.ds b/examples/scope.ds similarity index 100% rename from tests/scope.ds rename to examples/scope.ds diff --git a/tests/table.ds b/examples/table.ds similarity index 100% rename from tests/table.ds rename to examples/table.ds diff --git a/tests/variables.ds b/examples/variables.ds similarity index 100% rename from tests/variables.ds rename to examples/variables.ds diff --git a/tests/dust_tests.rs b/tests/dust_examples.rs similarity index 50% rename from tests/dust_tests.rs rename to tests/dust_examples.rs index 2ed4f0e..b9cb51a 100644 --- a/tests/dust_tests.rs +++ b/tests/dust_examples.rs @@ -4,42 +4,42 @@ use dust_lib::*; #[test] 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(); } #[test] 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(); } #[test] 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(); } #[test] 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(); } #[test] 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(); } #[test] 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(); }