Added negative tests for assoc and member.

This commit is contained in:
Georges Dupéron 2015-11-09 20:49:15 +01:00
parent 6c12d93261
commit 55e58a3fae
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,9 @@
#lang typed/racket
(: equal-string-length ( String String Boolean))
(define (equal-string-length s1 s2)
(= (string-length s1) (string-length s2)))
(assoc 123
'(("bb" . 1) ("c" . 2) ("ddd" . 3))
equal-string-length)

View File

@ -0,0 +1,9 @@
#lang typed/racket
(: equal-string-length ( String String Boolean))
(define (equal-string-length s1 s2)
(= (string-length s1) (string-length s2)))
(member 123
'("bb" "c" "ddd")
equal-string-length)