mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -04:00
* Assert now requires a tuple instead of a string containing statements. * We include a helpful ucg based unit testing module. Fixes: #26
16 lines
429 B
Plaintext
16 lines
429 B
Plaintext
assert {
|
|
ok = "hello @" % ("world") == "hello world",
|
|
desc = "\"hello @\" % (\"world\") == \"hello world\"",
|
|
};
|
|
assert {
|
|
ok = "1 @ @" % (2, 3) == "1 2 3",
|
|
desc = "\"1 @ @\" % (2, 3) == \"1 2 3\"",
|
|
};
|
|
assert {
|
|
ok = "@ or @" % (true, false) == "true or false",
|
|
desc = "\"@ or @\" % (true, false) == \"true or false\"",
|
|
};
|
|
assert {
|
|
ok = "@" % (NULL) == "NULL",
|
|
desc = "\"@\" % (NULL) == \"NULL\"",
|
|
}; |