diff options
| author | William Boman <william@redwill.se> | 2023-04-18 01:16:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-18 01:16:39 +0200 |
| commit | a0604613f5887ba14722d710e2b9290b3894e8db (patch) | |
| tree | 46995dde77d00b96b24dbfe4212583e2e745f02f /tests/mason-core/functional/relation_spec.lua | |
| parent | feat: add require("mason").has_setup flag (#1226) (diff) | |
| download | mason-a0604613f5887ba14722d710e2b9290b3894e8db.tar mason-a0604613f5887ba14722d710e2b9290b3894e8db.tar.gz mason-a0604613f5887ba14722d710e2b9290b3894e8db.tar.bz2 mason-a0604613f5887ba14722d710e2b9290b3894e8db.tar.lz mason-a0604613f5887ba14722d710e2b9290b3894e8db.tar.xz mason-a0604613f5887ba14722d710e2b9290b3894e8db.tar.zst mason-a0604613f5887ba14722d710e2b9290b3894e8db.zip | |
refactor(expr): remove redundant core filters and always stringify reduced value (#1227)
The removed filters are not used by mason-registry and are too Lua-specific in nature.
Diffstat (limited to 'tests/mason-core/functional/relation_spec.lua')
| -rw-r--r-- | tests/mason-core/functional/relation_spec.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/mason-core/functional/relation_spec.lua b/tests/mason-core/functional/relation_spec.lua index a8207b55..8f60b7a6 100644 --- a/tests/mason-core/functional/relation_spec.lua +++ b/tests/mason-core/functional/relation_spec.lua @@ -14,6 +14,19 @@ describe("functional: relation", function() assert.is_false(is_42(32)) end) + it("should check non-equality", function() + local tbl = {} + local is_not_tbl = _.not_equals(tbl) + local is_not_a = _.not_equals "a" + local is_not_42 = _.not_equals(42) + + assert.is_false(is_not_tbl(tbl)) + assert.is_false(is_not_a "a") + assert.is_false(is_not_42(42)) + assert.is_true(is_not_a "b") + assert.is_true(is_not_42(32)) + end) + it("should check property equality", function() local fn_key = function() end local tbl = { a = "a", b = "b", number = 42, [fn_key] = "fun" } |
