srfi-13-check.scm 426 B

1234567891011121314
  1. ; Part of Scheme 48 1.9. See file COPYING for notices and license.
  2. ; Authors: Mike Sperber
  3. (define-test-suite srfi-13-tests)
  4. (define-test-case string-contains srfi-13-tests
  5. (check (string-contains "ab" "ab") => 0)
  6. (check (string-contains "xabc" "ab") => 1)
  7. (check (string-contains "aabc" "ab") => 1)
  8. (check (string-contains "abaabaaabaaaa" "aaa") => 5)
  9. (check-that (string-contains "abcdef" "cdf") (is-false)))