oldoc63 / learningFS

Web development back and front
0 stars 0 forks source link

Setup, Exercise and Verify #1053

Open oldoc63 opened 2 years ago

oldoc63 commented 2 years ago

Test need be separated into setup, exercise and verify phases. This distinct and well-defined separation of steps makes your test more reliable, maintainable and expressive

The phases are defined as follows:

Clear separation of each phase makes a test easier to read, change and validate.

oldoc63 commented 2 years ago
  1. The same test is written twice - once in a naive approach, once using setup, exercise and verify phases. Run the test suite.
oldoc63 commented 2 years ago

Both test have errors. The test output will tell you which line threw an error for each test.

Fix both test using the correct call to .pop().