ucg/integration_tests/list_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

13 lines
291 B
Plaintext

let empty_list = [];
let concatenated = ["foo"] + ["bar"];
assert {
ok = concatenated == ["foo", "bar"],
desc = "concatenated == [\"foo\", \"bar\"]",
};
assert {
ok = concatenated + empty_list == ["foo", "bar"],
desc = "concatenated + empty_list == [\"foo\", \"bar\"]",
};