1. David Krentzlin
  2. missbehave

Commits

David Krentzlin  committed 1dfeaac

added examples for have-matcher

  • Participants
  • Parent commits dbb2a19
  • Branches default

Comments (0)

Files changed (1)

File spec/test.scm

View file
          (expect '() (be null?))))
 
 
+  (define (numbers ls) ls)
+  
+  (describe "Have"
+    (it "can be used with a collection procedure"
+      (expect '(1 2 3) (has 3 numbers)))
+
+    (it "supports arbritary sugar"
+      (expect "foo" (has 3 characters))))
+
+
   (describe "Matches string"
     (it "checks if regex matches string"
       (expect '(: (+ digit)) (matches-string "1234")))