summaryrefslogtreecommitdiff
path: root/exercises/17_tests
diff options
context:
space:
mode:
authormo8it <mo8it@proton.me>2024-04-17 23:34:27 +0200
committermo8it <mo8it@proton.me>2024-04-17 23:34:27 +0200
commit2f810a4da67233716ad93e00afff6e8b260f4807 (patch)
treef5a33357141d25d08b6726910efe33f2338b9cdb /exercises/17_tests
parentcb9f1ac9ce3c834b0cca964b6809b74508f80b54 (diff)
Clean up and unify exercises
Diffstat (limited to 'exercises/17_tests')
-rw-r--r--exercises/17_tests/tests1.rs5
-rw-r--r--exercises/17_tests/tests2.rs5
-rw-r--r--exercises/17_tests/tests3.rs5
-rw-r--r--exercises/17_tests/tests4.rs5
4 files changed, 0 insertions, 20 deletions
diff --git a/exercises/17_tests/tests1.rs b/exercises/17_tests/tests1.rs
index d32ace1..854a135 100644
--- a/exercises/17_tests/tests1.rs
+++ b/exercises/17_tests/tests1.rs
@@ -1,14 +1,9 @@
-// tests1.rs
-//
// Tests are important to ensure that your code does what you think it should
// do. Tests can be run on this file with the following command: rustlings run
// tests1
//
// This test has a problem with it -- make the test compile! Make the test pass!
// Make the test fail!
-//
-// Execute `rustlings hint tests1` or use the `hint` watch subcommand for a
-// hint.
fn main() {
// You can optionally experiment here.
diff --git a/exercises/17_tests/tests2.rs b/exercises/17_tests/tests2.rs
index 501c44b..f0899e1 100644
--- a/exercises/17_tests/tests2.rs
+++ b/exercises/17_tests/tests2.rs
@@ -1,10 +1,5 @@
-// tests2.rs
-//
// This test has a problem with it -- make the test compile! Make the test pass!
// Make the test fail!
-//
-// Execute `rustlings hint tests2` or use the `hint` watch subcommand for a
-// hint.
fn main() {
// You can optionally experiment here.
diff --git a/exercises/17_tests/tests3.rs b/exercises/17_tests/tests3.rs
index a2093cf..3b4e199 100644
--- a/exercises/17_tests/tests3.rs
+++ b/exercises/17_tests/tests3.rs
@@ -1,11 +1,6 @@
-// tests3.rs
-//
// This test isn't testing our function -- make it do that in such a way that
// the test passes. Then write a second test that tests whether we get the
// result we expect to get when we call `is_even(5)`.
-//
-// Execute `rustlings hint tests3` or use the `hint` watch subcommand for a
-// hint.
pub fn is_even(num: i32) -> bool {
num % 2 == 0
diff --git a/exercises/17_tests/tests4.rs b/exercises/17_tests/tests4.rs
index a50323c..35a9a3b 100644
--- a/exercises/17_tests/tests4.rs
+++ b/exercises/17_tests/tests4.rs
@@ -1,9 +1,4 @@
-// tests4.rs
-//
// Make sure that we're testing for the correct conditions!
-//
-// Execute `rustlings hint tests4` or use the `hint` watch subcommand for a
-// hint.
struct Rectangle {
width: i32,