rust-unofficial / too-many-lists

Learn Rust by writing Entirely Too Many linked lists
https://rust-unofficial.github.io/too-many-lists/
MIT License
3.23k stars 281 forks source link

test for null after each list #246

Open Arthur-Milchior opened 2 years ago

Arthur-Milchior commented 2 years ago

It was done sometime. I believe consistency makes sens here, it seems important for a test to ensure that next's next also behaves correctly.

Sometime, two None are tested. I decided not to be that consistent, because this redundancy seems heavy to read.