Skip to content

Commit

Permalink
Add more srfi-234 tests in the PR
Browse files Browse the repository at this point in the history
  • Loading branch information
shirok committed Oct 21, 2024
1 parent ac5fa5e commit 0b75091
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions test/include/srfi-234-test.scm
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,16 @@
(6 5)
(7 4) (7 6) (7 7))))

(test-assert
(lset= (lambda (a b) (lset= eqv? a b))
'((1) (2))
(connected-components '((1 2)))))

(test-assert
(lset= (lambda (a b) (lset= eqv? a b))
'((1 2))
(connected-components '((1 2) (2 1)))))

(test-assert
(lset= (lambda (a b) (lset= eqv? a b))
'((1 2) (3 4))
Expand Down Expand Up @@ -136,8 +146,6 @@
(6 5)
(7 4) (7 6) (7 7))))))



(define (permutations edgelist)
(if (null? edgelist) '(())
(apply append
Expand Down

0 comments on commit 0b75091

Please sign in to comment.