rs->ht-str-triples: Add an actual test case.
This commit is contained in:
parent
78e88840cc
commit
b2bc06646e
1 changed files with 3 additions and 1 deletions
4
rs.rkt
4
rs.rkt
|
@ -168,7 +168,9 @@
|
||||||
(test-case "rs->ht-str-triples"
|
(test-case "rs->ht-str-triples"
|
||||||
(define rs (hash 'a (make-reaction '(x) '(y) '(z))
|
(define rs (hash 'a (make-reaction '(x) '(y) '(z))
|
||||||
'b (make-reaction '(x y) '() '(t))))
|
'b (make-reaction '(x y) '() '(t))))
|
||||||
(rs->ht-str-triples rs)))
|
(check-equal? (rs->ht-str-triples rs)
|
||||||
|
(hash 'a (list "x" "y" "z")
|
||||||
|
'b (list "x y" "" "t")))))
|
||||||
|
|
||||||
(struct state ([result : (Setof Species)]
|
(struct state ([result : (Setof Species)]
|
||||||
[rest-contexts : (Listof (Setof Species))])
|
[rest-contexts : (Listof (Setof Species))])
|
||||||
|
|
Loading…
Reference in a new issue