rs->ht-str-triples: Add an actual test case.

This commit is contained in:
Sergiu Ivanov 2023-08-15 10:46:26 +02:00
parent 78e88840cc
commit b2bc06646e
1 changed files with 3 additions and 1 deletions

4
rs.rkt
View File

@ -168,7 +168,9 @@
(test-case "rs->ht-str-triples"
(define rs (hash 'a (make-reaction '(x) '(y) '(z))
'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)]
[rest-contexts : (Listof (Setof Species))])