From 010a04569282149cea7f7a76fc4d7f4c9f0f08dd Mon Sep 17 00:00:00 2001 From: Sanjay K Date: Tue, 19 May 2020 12:47:44 -0400 Subject: [PATCH] feat: renames test to quiz, fixes #244 BREAKING CHANGE * changed test to quiz: fixes issues in #244 * fixed info.toml: #244 * fixed naming related issues --- README.md | 2 +- exercises/{test1.rs => quiz1.rs} | 4 ++-- exercises/{test2.rs => quiz2.rs} | 4 ++-- exercises/{test3.rs => quiz3.rs} | 6 +++--- exercises/{test4.rs => quiz4.rs} | 6 +++--- info.toml | 18 +++++++++--------- 6 files changed, 20 insertions(+), 20 deletions(-) rename exercises/{test1.rs => quiz1.rs} (90%) rename exercises/{test2.rs => quiz2.rs} (93%) rename exercises/{test3.rs => quiz3.rs} (81%) rename exercises/{test4.rs => quiz4.rs} (74%) diff --git a/README.md b/README.md index db20330..c5d399e 100644 --- a/README.md +++ b/README.md @@ -99,7 +99,7 @@ rustlings hint myExercise1 ## Testing yourself -After every couple of sections, there will be a test that'll test your knowledge on a bunch of sections at once. These tests are found in `exercises/testN.rs`. +After every couple of sections, there will be a quiz that'll test your knowledge on a bunch of sections at once. These quizzes are found in `exercises/quizN.rs`. ## Completion diff --git a/exercises/test1.rs b/exercises/quiz1.rs similarity index 90% rename from exercises/test1.rs rename to exercises/quiz1.rs index 8b5b8fd..5c5c355 100644 --- a/exercises/test1.rs +++ b/exercises/quiz1.rs @@ -1,5 +1,5 @@ -// test1.rs -// This is a test for the following sections: +// quiz1.rs +// This is a quiz for the following sections: // - Variables // - Functions diff --git a/exercises/test2.rs b/exercises/quiz2.rs similarity index 93% rename from exercises/test2.rs rename to exercises/quiz2.rs index acdcb95..8caeaa9 100644 --- a/exercises/test2.rs +++ b/exercises/quiz2.rs @@ -1,5 +1,5 @@ -// test2.rs -// This is a test for the following sections: +// quiz2.rs +// This is a quiz for the following sections: // - Strings // Ok, here are a bunch of values-- some are `String`s, some are `&str`s. Your diff --git a/exercises/test3.rs b/exercises/quiz3.rs similarity index 81% rename from exercises/test3.rs rename to exercises/quiz3.rs index f94c36f..30596b9 100644 --- a/exercises/test3.rs +++ b/exercises/quiz3.rs @@ -1,8 +1,8 @@ -// test3.rs -// This is a test for the following sections: +// quiz.rs +// This is a quiz for the following sections: // - Tests -// This test isn't testing our function -- make it do that in such a way that +// This quiz isn't testing our function -- make it do that in such a way that // the test passes. Then write a second test that tests that we get the result // we expect to get when we call `times_two` with a negative number. // No hints, you can do this :) diff --git a/exercises/test4.rs b/exercises/quiz4.rs similarity index 74% rename from exercises/test4.rs rename to exercises/quiz4.rs index ad1f6ac..6c47480 100644 --- a/exercises/test4.rs +++ b/exercises/quiz4.rs @@ -1,9 +1,9 @@ -// test4.rs -// This test covers the sections: +// quiz4.rs +// This quiz covers the sections: // - Modules // - Macros -// Write a macro that passes the test! No hints this time, you can do it! +// Write a macro that passes the quiz! No hints this time, you can do it! // I AM NOT DONE diff --git a/info.toml b/info.toml index 7858d7c..e2aa82a 100644 --- a/info.toml +++ b/info.toml @@ -149,8 +149,8 @@ They are not the same. There are two solutions: # TEST 1 [[exercises]] -name = "test1" -path = "exercises/test1.rs" +name = "quiz1" +path = "exercises/quiz1.rs" mode = "test" hint = "No hints this time ;)" @@ -280,8 +280,8 @@ string slice instead of a `String`, wouldn't it?? There is a way to add one char # TEST 2 [[exercises]] -name = "test2" -path = "exercises/test2.rs" +name = "quiz2" +path = "exercises/quiz2.rs" mode = "compile" hint = "No hints this time ;)" @@ -311,7 +311,7 @@ hint = "No hints this time ;)" # TESTS [[exercises]] -name = "tests1" +name = "quiz1" path = "exercises/tests/tests1.rs" mode = "test" hint = """ @@ -343,8 +343,8 @@ can negate the result of what you're doing using `!`, like `assert!(!having_fun( # TEST 3 [[exercises]] -name = "test3" -path = "exercises/test3.rs" +name = "quiz3" +path = "exercises/quiz3.rs" mode = "test" hint = "No hints this time ;)" @@ -414,8 +414,8 @@ The way macros are written, it wants to see something between each # TEST 4 [[exercises]] -name = "test4" -path = "exercises/test4.rs" +name = "quiz4" +path = "exercises/quiz4.rs" mode = "test" hint = "No hints this time ;)"