Your browser does not support HTML5 canvas. Fork me on GitHub

Available Packages:

Wurstunit

Source

function int.assertEquals(int expected)

Source

Asserts that two ints are equal. If they are not, an error is thrown with a message.

function string.assertEquals(string expected)

Source

Asserts that two strings are equal. If they are not, an error is thrown with a message.

function real.assertEquals(real expected)

Source

Asserts that two reals are equal. If they are not, an error is thrown with a message.

function real.assertEquals(real expected, real delta)

Source

Asserts that two reals are equal to within a positive delta. If they are not, an error is thrown with a message.

function boolean.assertEquals(boolean expected)

Source

Asserts that two booleans are equal. If they are not, an error is thrown with a message.

function boolean.assertFalse()

Source

Asserts that this booleans is false. If it is not, an error is thrown with a message.

function int.assertGreaterThan(int less)

Source

Asserts that the passed int is greater than the parameter. If they are not, an error is thrown with a message.

function real.assertGreaterThan(real less)

Source

Asserts that the passed real is greater than the parameter. If they are not, an error is thrown with a message.

function int.assertGreaterThanOrEqual(int less)

Source

Asserts that the passed int is greater than the parameter. If they are not, an error is thrown with a message.

function real.assertGreaterThanOrEqual(real less)

Source

Asserts that the passed real is greater than the parameter. If they are not, an error is thrown with a message.

function int.assertLessThan(int greater)

Source

Asserts that the passed int is greater than the parameter. If they are not, an error is thrown with a message.

function real.assertLessThan(real greater)

Source

Asserts that the passed real is greater than the parameter. If they are not, an error is thrown with a message.

function int.assertLessThanOrEqual(int greater)

Source

Asserts that the passed int is greater than the parameter. If they are not, an error is thrown with a message.

function real.assertLessThanOrEqual(real greater)

Source

Asserts that the passed real is greater than the parameter. If they are not, an error is thrown with a message.

function assertNotNull(T t)

Source

Asserts that the reference t is not null

function boolean.assertTrue()

Source

Asserts that this booleans is true. If it is not, an error is thrown with a message.

function assertTrue(boolean b)

Source

Asserts that this booleans is true. If it is not, an error is thrown.

function assertTrue(boolean b, string msg)

Source

Asserts that this booleans is true. If it is not, an error is thrown with the supplied message.

function println(string msg)

Source

function test()

Source

Functions annotated with @test can be executed as unit tests.

function testFail(string msg)

Source

function testSuccess()

Source