Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Kodiologist committed Jan 26, 2025
1 parent d5012c6 commit 328fb73
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions tests/test_destructure.hy
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@
(defn+ foo [])
(assert (is (foo) None)))

(defn test-defn+-fancy []
(do-mac (when (>= hy.I.sys.version-info #(3 12))
'(defn test-defn+-fancy []

(defn decorator1 [f]
(setv f.a1 1)
Expand All @@ -364,7 +365,7 @@
(assert (= fancy-fun.a2 2))
(assert (=
(str (:return (hy.I.inspect.get-annotations fancy-fun)))
"list[T]")))
"list[T]")))))

(defn test-fn+ []

Expand Down
5 changes: 3 additions & 2 deletions tests/test_oop.hy
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,8 @@
(assert (= x.attr 2)))


(defn test-meth-fancy []
(do-mac (when (>= hy.I.sys.version-info #(3 12))
'(defn test-meth-fancy []

(defclass Pony []
(meth
Expand All @@ -117,7 +118,7 @@
(assert (= Pony.fancy-meth.da "hello"))
(assert (=
(str (:return (hy.I.inspect.get-annotations Pony.fancy-meth)))
"list[T]")))
"list[T]")))))


(defn test-ameth []
Expand Down

0 comments on commit 328fb73

Please sign in to comment.