mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-12-01 22:51:45 +02:00
Clean up tests
This commit is contained in:
3
tests/test_exercises/exercises/compilation_failure.rs
Normal file
3
tests/test_exercises/exercises/compilation_failure.rs
Normal file
@@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
let
|
||||
}
|
||||
1
tests/test_exercises/exercises/compilation_success.rs
Normal file
1
tests/test_exercises/exercises/compilation_success.rs
Normal file
@@ -0,0 +1 @@
|
||||
fn main() {}
|
||||
1
tests/test_exercises/exercises/not_in_info.rs
Normal file
1
tests/test_exercises/exercises/not_in_info.rs
Normal file
@@ -0,0 +1 @@
|
||||
fn main() {}
|
||||
9
tests/test_exercises/exercises/test_failure.rs
Normal file
9
tests/test_exercises/exercises/test_failure.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
fn main() {}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[test]
|
||||
fn fails() {
|
||||
asset!(false);
|
||||
}
|
||||
}
|
||||
9
tests/test_exercises/exercises/test_success.rs
Normal file
9
tests/test_exercises/exercises/test_success.rs
Normal file
@@ -0,0 +1,9 @@
|
||||
fn main() {
|
||||
println!("Output from `main` function");
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
mod tests {
|
||||
#[test]
|
||||
fn passes() {}
|
||||
}
|
||||
Reference in New Issue
Block a user