Skip to content

Commit

Permalink
correct intersect-elements which needs a collapse on the outside
Browse files Browse the repository at this point in the history
  • Loading branch information
TeamSPoon committed Sep 11, 2024
1 parent 9706d77 commit d7e053a
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -215,10 +215,13 @@ Test intersection with duplicates
)


;(= (intersection-element $x $y) (intersection (superpose $x) (superpose $y)))
;!(assertEqual (intersection-element (1 2 3 foo bar) (2 foo)) (superpose (2 foo)))

;
; (= (intersection $x $y) (superpose (intersection-element (collapse $x) (collapse $y))))
; (= (intersection $x $y) (superpose (intersect-elements (collapse $x) (collapse $y))))

; A Test to show we can define a function to be used like how normal people are imagining
(= (intersect-elements $x $y) (collapse (intersection (superpose $x) (superpose $y))))
!(assertEqual (intersect-elements (1 2 3 foo bar) (2 foo)) (2 foo))

"

Expand Down

0 comments on commit d7e053a

Please sign in to comment.