Skip to content

Commit

Permalink
Test to check array class of previous definterface on new definterface
Browse files Browse the repository at this point in the history
  • Loading branch information
fogus committed Aug 26, 2024
1 parent 57b1091 commit a6bedbb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/clojure/test_clojure/array_symbols.clj
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,10 @@
(deftest test-definterface-acs
(testing "definterface"
(let [obj (reify ArrayClassSymbolFoo (bar [this] (into-array String ["a"])))]
(= ["a"] (seq (.bar obj))))
(is (= ["a"] (seq (.bar obj)))))
(let [obj (reify ArrayClassSymbolFooAsHint
(baz [this]
(into-array ArrayClassSymbolFoo [(reify ArrayClassSymbolFoo
(bar [this] (into-array String ["a"])))])))]
(= ["a"] (let [^ArrayClassSymbolFoo acsf (first (.baz obj))]
(seq (.bar acsf)))))))
(is (= ["a"] (let [^ArrayClassSymbolFoo acsf (first (.baz obj))]
(seq (.bar acsf))))))))

0 comments on commit a6bedbb

Please sign in to comment.