Changeset 25431 in project


Ignore:
Timestamp:
10/25/11 20:12:06 (9 years ago)
Author:
certainty
Message:

Fixed missing parens in example. Added example for (match-string).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/missbehave

    r25430 r25431  
    3737     (subject-set! 42)
    3838     (it (is > 10))
    39      (it (is a number) 
     39     (it (is a number))
    4040     (it should (be 42)))
    4141 
     
    5050     (it "can use predicates"
    5151         (expect '() (be null?))))
     52
     53  (describe "Matches string"
     54    (it "checks if regex matches string"
     55      (expect '(: (+ digit)) (matches-string "1234")))
     56    (it "checks the submatches"
     57      (expect '(: (+ digit) (submatch (+ any))) (matches-string "1234foo" with-matches: '((1 . "foo"))))))
    5258
    5359  (describe "Pending"
Note: See TracChangeset for help on using the changeset viewer.