diff options
Diffstat (limited to 'tests/core/functional/logic_spec.lua')
| -rw-r--r-- | tests/core/functional/logic_spec.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/core/functional/logic_spec.lua b/tests/core/functional/logic_spec.lua index 19ac8bb7..291d8979 100644 --- a/tests/core/functional/logic_spec.lua +++ b/tests/core/functional/logic_spec.lua @@ -41,4 +41,9 @@ describe("functional: logic", function() assert.equals("Hello World!", planetary_object "World!") assert.equals("to the Moon!", planetary_object "Moon!") end) + + it("should give complements", function() + assert.is_true(_.complement(_.is_nil, "not nil")) + assert.is_false(_.complement(_.is_nil, nil)) + end) end) |
