Sha256: 645c028c56beedaf9d40e46440d2a00797fa8419d6dc35299a95076e300f75be
Contents?: true
Size: 784 Bytes
Versions: 54
Compression:
Stored size: 784 Bytes
Contents
use "ponytest" actor Main is TestList new create(env: Env) => PonyTest(env, this) new make() => None fun tag tests(test: PonyTest) => test(_LeapTest) class iso _LeapTest is UnitTest """ Test Leap package """ fun name(): String => "leap/Leap" fun apply(h: TestHelper) => // Note -> Current master-branch simplifies these functions to // assert_true/false, and removes expect // https://github.com/ponylang/ponyc/blob/master/packages/ponytest/helper.pony 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
54 entries across 54 versions & 1 rubygems