Sha256: 69802099e234b1a5b3ea190d2d69c372af17cd171161a28cbb055c945e926f3f
Contents?: true
Size: 531 Bytes
Versions: 330
Compression:
Stored size: 531 Bytes
Contents
use "ponytest" actor Main is TestList new create(env: Env) => PonyTest(env, this) fun tag tests(test: PonyTest) => test(_TestLeap) class iso _TestLeap is UnitTest fun name(): String => "leap/Leap" fun apply(h: TestHelper) => h.assert_true(Leap(1996), "Testing a leap year") h.assert_false(Leap(1997), "Testing an odd year") h.assert_false(Leap(1998), "Testing a non-leap even year") h.assert_false(Leap(1900), "Testing a century") h.assert_true(Leap(2000), "Testing an exceptional century")
Version data entries
330 entries across 330 versions & 1 rubygems