You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-27 19:18:59 +02:00
I was a bit dissatisfied with the test code for the generic min exercise. We were supposed to be testing that the student wrote the generic function correctly, but we only test their `min` function with one type. I rewrote the exercise to test against multiple types, which required that we use the regular `Ord` trait rather than a custom one. I tend to prefer using the real items from `std` when we can because it's a good way to get students familiar with the standard library. I also removed the custom `Citation` type since it wasn't really important to the exercise.