Commit Graph

4 Commits

Author SHA1 Message Date
Paul Holt
f756389037 Createa a build_00_utilities project containing testing helpers, including the ConsoleTest abstract class. 2022-01-29 23:48:53 +11:00
Paul Holt
302e1a0e0b Testing added! Now some full behaviour tests on both Animal JVM implementations.
Still todo: Move the ConsoleTest library into its own module, add a gradle dependency on it.
2022-01-29 22:36:29 +11:00
John Long
71c7541905 Switch to readln
readln throws an exception when a file hits EOF, wheras readLine returns null. That puts us in an infinite loop if we hit EOF.
2022-01-05 23:22:46 -08:00
John Long
48522ba27d Add Kotlin version of Animal
Animal fascinated me as a kid. I wrote a version in Modula-2 for a Junior High School project. Didn't realize at the time I was studying binary trees.
2022-01-02 16:26:35 -08:00