jameshughes89 / cs102

CS 102: Data Structures --- Java
http://csci162.com/
GNU General Public License v3.0
11 stars 16 forks source link

:technologist: :mortar_board: One off example Code --- Write code and have tests #944

Open jameshughes89 opened 8 months ago

jameshughes89 commented 8 months ago

What

Where possible, convert some of the code-block code into actual code in a class that can be run and tested.

Why

I noticed that there are examples of chunks of code/functions that are just hard coded in a code-block in the topic. This could be moved to an actual class and tested.

Pros of this is the code is tested.

Where

Where it makes sense. Not all cases will. Look at the recursion topic for an example.