mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
Adapt test for string-locale-ci=?
* test-suite/tests/i18n.test ("text collation (French)"): Punt on collating if utf8 locale unavailable.
This commit is contained in:
parent
d87b57a00b
commit
8a8727db5c
1 changed files with 7 additions and 5 deletions
|
@ -74,11 +74,6 @@
|
|||
(string-locale-ci=? "Hello" "HELLO"
|
||||
(make-locale (list LC_COLLATE) "C"))))
|
||||
|
||||
(pass-if "string-locale-ci=?, bis"
|
||||
(let* ((strings (list "⇒a" "⇒b"))
|
||||
(heads (map (lambda (s) (substring/shared s 0 1)) strings)))
|
||||
(apply string-locale-ci=? heads)))
|
||||
|
||||
(pass-if "string-locale-ci<?"
|
||||
(and (string-locale-ci<? "hello" "WORLD")
|
||||
(string-locale-ci<? "hello" "WORLD"
|
||||
|
@ -226,6 +221,13 @@
|
|||
(lambda ()
|
||||
(setlocale LC_ALL "C"))))))
|
||||
|
||||
(pass-if "string-locale-ci=?, bis"
|
||||
(under-french-utf8-locale-or-unresolved
|
||||
(lambda ()
|
||||
(let* ((strings (list "œa" "œb"))
|
||||
(heads (map (lambda (s) (substring/shared s 0 1)) strings)))
|
||||
(apply string-locale-ci=? heads)))))
|
||||
|
||||
(pass-if "string-locale-ci=? (3 args, wide strings)"
|
||||
(under-french-utf8-locale-or-unresolved
|
||||
(lambda ()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue