When | Mood | Music |
2012-04-18 14:37:00 | puzzled | Take a Breath (Live) – David Gilmour |
Doggedly writing JUnit tests for my Swamp class.
Is there any point in writing a test for a method that randomly returns either ‘true’ or ‘false’? The only test I can think of is that the return value should b done of these values.
Also puzzled how I write a test for my method that draws a map of the Swamp and its Creatures. This will vary each time the game is run because an Ogre is placed in a random position each time the game is run, before the map is ever drawn.