diff options
| author | Andrey Orst <andreyorst@gmail.com> | 2020-11-21 10:14:09 +0000 |
|---|---|---|
| committer | Andrey Orst <andreyorst@gmail.com> | 2020-11-21 10:14:09 +0000 |
| commit | 0c4f5d25977c20bdc18fb193bb28c43b22641dc6 (patch) | |
| tree | b81e0e4ba4778e8734e6069ece4d6097df1431e0 /tests/macros.fnl | |
| parent | dc7f076d4bd433c9857944cb2f756b0f07bc3db6 (diff) | |
fix: update ordered when removing items.
WIP: for unordered set
Diffstat (limited to 'tests/macros.fnl')
| -rw-r--r-- | tests/macros.fnl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/macros.fnl b/tests/macros.fnl index 29b5317..9ac9d95 100644 --- a/tests/macros.fnl +++ b/tests/macros.fnl @@ -18,9 +18,9 @@ ;; different bodies are being used at compile time so worth testing (assert-eq (into [] {}) []) (assert-eq (into {} []) []) - (assert-eq (. (getmetatable (into [] {})) :cljlib/table-type) :seq) - (assert-eq (. (getmetatable (into {} [])) :cljlib/table-type) :table) - (let [a []] (assert-eq (. (getmetatable (into a a)) :cljlib/table-type) :seq)) + (assert-eq (. (getmetatable (into [] {})) :cljlib/type) :seq) + (assert-eq (. (getmetatable (into {} [])) :cljlib/type) :table) + (let [a []] (assert-eq (. (getmetatable (into a a)) :cljlib/type) :seq)) ;; can't transform table with more than one key-value pair, as order ;; is undeterminitive @@ -189,17 +189,17 @@ (deftest empty (testing "empty map" (assert-eq (empty {}) {}) - (assert-eq (getmetatable (empty {})) {:cljlib/table-type :table}) + (assert-eq (getmetatable (empty {})) {:cljlib/type :table}) (let [a {:a 1 :b 2}] (assert-eq (empty a) {}) - (assert-eq (getmetatable (empty a)) {:cljlib/table-type :table})) + (assert-eq (getmetatable (empty a)) {:cljlib/type :table})) (let [a {}] (assert-eq (empty a) []) - (assert-eq (getmetatable (empty a)) {:cljlib/table-type :empty}))) + (assert-eq (getmetatable (empty a)) {:cljlib/type :empty}))) (testing "empty seq" (assert-eq (empty []) {}) - (assert-eq (getmetatable (empty [])) {:cljlib/table-type :seq}) + (assert-eq (getmetatable (empty [])) {:cljlib/type :seq}) (let [a [:a 1 :b 2]] (assert-eq (empty a) []) - (assert-eq (getmetatable (empty a)) {:cljlib/table-type :seq})))) + (assert-eq (getmetatable (empty a)) {:cljlib/type :seq})))) |