Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sprint-3/1-implement-and-rewrite-tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ to choose test values that thoroughly test a function.
In the `implement` directory you've got a number of functions you'll need to implement.
For each function, you also have a number of different cases you'll need to check for your function.

Write your assertions and build up your program case by case. Don't rush to a solution. The point of these assignments is to learn how to write assertions and build up a program step by step.
Write your implementation and then write your tests to cover the cases the function should fulfil.

Here is a recommended order:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ try {
getCardValue("invalid");

// This line will not be reached if an error is thrown as expected
console.error("Error was not thrown for invalid card");
} catch (e) {}
console.error("Error was not thrown for invalid card 😢");
} catch (e) {
console.error("Error thrown for invalid card 🎉");
}

// What other invalid card cases can you think of?
Loading