Skip to content

Commit

Permalink
feat: renames test to quiz, fixes #244
Browse files Browse the repository at this point in the history
BREAKING CHANGE

* changed test to quiz: fixes issues in #244
* fixed info.toml: #244
* fixed naming related issues
  • Loading branch information
sanjaykdragon committed May 19, 2020
1 parent 5166660 commit 010a045
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions exercises/test1.rs → exercises/quiz1.rs
Original file line number Diff line number Diff line change
@@ -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

Expand Down
4 changes: 2 additions & 2 deletions exercises/test2.rs → exercises/quiz2.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions exercises/test3.rs → exercises/quiz3.rs
Original file line number Diff line number Diff line change
@@ -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 :)
Expand Down
6 changes: 3 additions & 3 deletions exercises/test4.rs → exercises/quiz4.rs
Original file line number Diff line number Diff line change
@@ -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

Expand Down
18 changes: 9 additions & 9 deletions info.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ;)"

Expand Down Expand Up @@ -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 ;)"

Expand Down Expand Up @@ -311,7 +311,7 @@ hint = "No hints this time ;)"
# TESTS

[[exercises]]
name = "tests1"
name = "quiz1"
path = "exercises/tests/tests1.rs"
mode = "test"
hint = """
Expand Down Expand Up @@ -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 ;)"

Expand Down Expand Up @@ -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 ;)"

Expand Down

0 comments on commit 010a045

Please sign in to comment.