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
This commit is contained in:
parent
51666609f1
commit
010a045692
|
@ -99,7 +99,7 @@ rustlings hint myExercise1
|
||||||
|
|
||||||
## Testing yourself
|
## 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
|
## Completion
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// test1.rs
|
// quiz1.rs
|
||||||
// This is a test for the following sections:
|
// This is a quiz for the following sections:
|
||||||
// - Variables
|
// - Variables
|
||||||
// - Functions
|
// - Functions
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// test2.rs
|
// quiz2.rs
|
||||||
// This is a test for the following sections:
|
// This is a quiz for the following sections:
|
||||||
// - Strings
|
// - Strings
|
||||||
|
|
||||||
// Ok, here are a bunch of values-- some are `String`s, some are `&str`s. Your
|
// Ok, here are a bunch of values-- some are `String`s, some are `&str`s. Your
|
|
@ -1,8 +1,8 @@
|
||||||
// test3.rs
|
// quiz.rs
|
||||||
// This is a test for the following sections:
|
// This is a quiz for the following sections:
|
||||||
// - Tests
|
// - 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
|
// 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.
|
// we expect to get when we call `times_two` with a negative number.
|
||||||
// No hints, you can do this :)
|
// No hints, you can do this :)
|
|
@ -1,9 +1,9 @@
|
||||||
// test4.rs
|
// quiz4.rs
|
||||||
// This test covers the sections:
|
// This quiz covers the sections:
|
||||||
// - Modules
|
// - Modules
|
||||||
// - Macros
|
// - 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
|
// I AM NOT DONE
|
||||||
|
|
18
info.toml
18
info.toml
|
@ -149,8 +149,8 @@ They are not the same. There are two solutions:
|
||||||
# TEST 1
|
# TEST 1
|
||||||
|
|
||||||
[[exercises]]
|
[[exercises]]
|
||||||
name = "test1"
|
name = "quiz1"
|
||||||
path = "exercises/test1.rs"
|
path = "exercises/quiz1.rs"
|
||||||
mode = "test"
|
mode = "test"
|
||||||
hint = "No hints this time ;)"
|
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
|
# TEST 2
|
||||||
|
|
||||||
[[exercises]]
|
[[exercises]]
|
||||||
name = "test2"
|
name = "quiz2"
|
||||||
path = "exercises/test2.rs"
|
path = "exercises/quiz2.rs"
|
||||||
mode = "compile"
|
mode = "compile"
|
||||||
hint = "No hints this time ;)"
|
hint = "No hints this time ;)"
|
||||||
|
|
||||||
|
@ -311,7 +311,7 @@ hint = "No hints this time ;)"
|
||||||
# TESTS
|
# TESTS
|
||||||
|
|
||||||
[[exercises]]
|
[[exercises]]
|
||||||
name = "tests1"
|
name = "quiz1"
|
||||||
path = "exercises/tests/tests1.rs"
|
path = "exercises/tests/tests1.rs"
|
||||||
mode = "test"
|
mode = "test"
|
||||||
hint = """
|
hint = """
|
||||||
|
@ -343,8 +343,8 @@ can negate the result of what you're doing using `!`, like `assert!(!having_fun(
|
||||||
# TEST 3
|
# TEST 3
|
||||||
|
|
||||||
[[exercises]]
|
[[exercises]]
|
||||||
name = "test3"
|
name = "quiz3"
|
||||||
path = "exercises/test3.rs"
|
path = "exercises/quiz3.rs"
|
||||||
mode = "test"
|
mode = "test"
|
||||||
hint = "No hints this time ;)"
|
hint = "No hints this time ;)"
|
||||||
|
|
||||||
|
@ -414,8 +414,8 @@ The way macros are written, it wants to see something between each
|
||||||
# TEST 4
|
# TEST 4
|
||||||
|
|
||||||
[[exercises]]
|
[[exercises]]
|
||||||
name = "test4"
|
name = "quiz4"
|
||||||
path = "exercises/test4.rs"
|
path = "exercises/quiz4.rs"
|
||||||
mode = "test"
|
mode = "test"
|
||||||
hint = "No hints this time ;)"
|
hint = "No hints this time ;)"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue