ucg/integration_tests/format_test.ucg
Jeremy Wall d989e47706 FEATURE: Use a better DSL for unit tests.
* Assert now requires a tuple instead of a string containing
  statements.
* We include a helpful ucg based unit testing module.

Fixes: #26
2019-01-10 17:17:57 -06:00

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\"",
};