diff options
Diffstat (limited to 'tests/test_exercises')
| -rw-r--r-- | tests/test_exercises/Cargo.toml | 11 | ||||
| -rw-r--r-- | tests/test_exercises/exercises/compilation_failure.rs | 3 | ||||
| -rw-r--r-- | tests/test_exercises/exercises/compilation_success.rs | 1 | ||||
| -rw-r--r-- | tests/test_exercises/exercises/not_in_info.rs | 1 | ||||
| -rw-r--r-- | tests/test_exercises/exercises/test_failure.rs | 9 | ||||
| -rw-r--r-- | tests/test_exercises/exercises/test_success.rs | 9 | ||||
| -rw-r--r-- | tests/test_exercises/info.toml | 19 |
7 files changed, 53 insertions, 0 deletions
diff --git a/tests/test_exercises/Cargo.toml b/tests/test_exercises/Cargo.toml new file mode 100644 index 0000000..6b81751 --- /dev/null +++ b/tests/test_exercises/Cargo.toml @@ -0,0 +1,11 @@ +bin = [ + { name = "compilation_success", path = "exercises/compilation_success.rs" }, + { name = "compilation_failure", path = "exercises/compilation_failure.rs" }, + { name = "test_success", path = "exercises/test_success.rs" }, + { name = "test_failure", path = "exercises/test_failure.rs" }, +] + +[package] +name = "test_exercises" +edition = "2021" +publish = false diff --git a/tests/test_exercises/exercises/compilation_failure.rs b/tests/test_exercises/exercises/compilation_failure.rs new file mode 100644 index 0000000..566856a --- /dev/null +++ b/tests/test_exercises/exercises/compilation_failure.rs @@ -0,0 +1,3 @@ +fn main() { + let +}
\ No newline at end of file diff --git a/tests/test_exercises/exercises/compilation_success.rs b/tests/test_exercises/exercises/compilation_success.rs new file mode 100644 index 0000000..f328e4d --- /dev/null +++ b/tests/test_exercises/exercises/compilation_success.rs @@ -0,0 +1 @@ +fn main() {} diff --git a/tests/test_exercises/exercises/not_in_info.rs b/tests/test_exercises/exercises/not_in_info.rs new file mode 100644 index 0000000..f328e4d --- /dev/null +++ b/tests/test_exercises/exercises/not_in_info.rs @@ -0,0 +1 @@ +fn main() {} diff --git a/tests/test_exercises/exercises/test_failure.rs b/tests/test_exercises/exercises/test_failure.rs new file mode 100644 index 0000000..9dc142a --- /dev/null +++ b/tests/test_exercises/exercises/test_failure.rs @@ -0,0 +1,9 @@ +fn main() {} + +#[cfg(test)] +mod tests { + #[test] + fn fails() { + asset!(false); + } +} diff --git a/tests/test_exercises/exercises/test_success.rs b/tests/test_exercises/exercises/test_success.rs new file mode 100644 index 0000000..8c8a3c6 --- /dev/null +++ b/tests/test_exercises/exercises/test_success.rs @@ -0,0 +1,9 @@ +fn main() { + println!("Output from `main` function"); +} + +#[cfg(test)] +mod tests { + #[test] + fn passes() {} +} diff --git a/tests/test_exercises/info.toml b/tests/test_exercises/info.toml new file mode 100644 index 0000000..d91094c --- /dev/null +++ b/tests/test_exercises/info.toml @@ -0,0 +1,19 @@ +format_version = 1 + +[[exercises]] +name = "compilation_success" +test = false +hint = "" + +[[exercises]] +name = "compilation_failure" +test = false +hint = "" + +[[exercises]] +name = "test_success" +hint = "" + +[[exercises]] +name = "test_failure" +hint = "The answer to everything: 42" |
