2007-09-03 00:17:15 -04:00
|
|
|
(library (tests strings)
|
|
|
|
(export test-strings)
|
|
|
|
(import (ikarus) (tests framework))
|
|
|
|
|
|
|
|
(define-tests test-strings
|
|
|
|
[values
|
|
|
|
(string-ci=? "Strasse" "Stra\xDF;e")]
|
|
|
|
;[(lambda (x) (string=? x "STRASSE"))
|
|
|
|
; (string-upcase "Stra\xDF;e")]
|
|
|
|
;[(lambda (x) (string=? x "stra\xDF;e"))
|
|
|
|
; (string-downcase "Stra\xDF;e")]
|
|
|
|
[(lambda (x) (string=? x "strasse"))
|
|
|
|
(string-foldcase "Stra\xDF;e")]
|
|
|
|
;[(lambda (x) (string=? x "strasse"))
|
|
|
|
; (string-downcase "STRASSE")]
|
|
|
|
[values (string-ci=? "Stra\xDF;e" "Strasse")]
|
|
|
|
[values (string-ci=? "Stra\xDF;e" "STRASSE")]
|
2007-12-14 21:04:54 -05:00
|
|
|
[values (string-ci=? "\xDF;" "SS")]
|
|
|
|
[values (string-ci=? "\xDF;\xDF;" "SSSS")]
|
2007-09-03 00:17:15 -04:00
|
|
|
))
|
|
|
|
|
|
|
|
|