[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 28/47: i18n: Add new collation test for posterity.
From: |
Andy Wingo |
Subject: |
[Guile-commits] 28/47: i18n: Add new collation test for posterity. |
Date: |
Sun, 22 May 2016 18:23:05 +0000 (UTC) |
wingo pushed a commit to branch master
in repository guile.
commit 2e3f6c3c678b28a839d6c751db5bc4c50a956c8e
Author: Ludovic Courtès <address@hidden>
Date: Thu Oct 29 23:17:51 2015 +0100
i18n: Add new collation test for posterity.
* test-suite/tests/i18n.test ("text collation (Czech)"): New test
prefix.
---
test-suite/tests/i18n.test | 19 ++++++++++++++++++-
1 file changed, 18 insertions(+), 1 deletion(-)
diff --git a/test-suite/tests/i18n.test b/test-suite/tests/i18n.test
index c63e3ac..73502a0 100644
--- a/test-suite/tests/i18n.test
+++ b/test-suite/tests/i18n.test
@@ -1,7 +1,7 @@
;;;; i18n.test --- Exercise the i18n API. -*- coding: utf-8; mode: scheme; -*-
;;;;
;;;; Copyright (C) 2006, 2007, 2009, 2010, 2011, 2012,
-;;;; 2013, 2014 Free Software Foundation, Inc.
+;;;; 2013, 2014, 2015 Free Software Foundation, Inc.
;;;; Ludovic Courtès
;;;;
;;;; This library is free software; you can redistribute it and/or
@@ -271,6 +271,23 @@
(string-locale-ci=? "ΧΑΟΣ" "χαος" gr))))))
+(with-test-prefix "text collation (Czech)"
+
+ (pass-if "string-locale<? for 'ch'"
+ (under-locale-or-unresolved
+ "cs_CZ.utf8"
+ (lambda ()
+ ;; Czech sorts digraph 'ch' between 'h' and 'i'.
+ ;;
+ ;; GNU libc 2.22 gets this wrong:
+ ;; <https://sourceware.org/bugzilla/show_bug.cgi?id=18589>. For
+ ;; now, just skip it if it fails (XXX).
+ (or (and (string-locale>? "chxxx" "cxxx")
+ (string-locale>? "chxxx" "hxxx")
+ (string-locale<? "chxxxx" "ixxx"))
+ (throw 'unresolved))))))
+
+
(with-test-prefix "character mapping"
(pass-if "char-locale-downcase"
- [Guile-commits] 03/47: Implement 'string-utf8-length' and 'scm_c_string_utf8_length'., (continued)
- [Guile-commits] 03/47: Implement 'string-utf8-length' and 'scm_c_string_utf8_length'., Andy Wingo, 2016/05/22
- [Guile-commits] 12/47: doc: Update libgc URL., Andy Wingo, 2016/05/22
- [Guile-commits] 09/47: Work around requirement that size be non-zero in GDB 'open-memory'., Andy Wingo, 2016/05/22
- [Guile-commits] 07/47: Correct docstring of 'symlink'., Andy Wingo, 2016/05/22
- [Guile-commits] 11/47: Add more R6RS port encoding tests, Andy Wingo, 2016/05/22
- [Guile-commits] 01/47: tests: Use 'pass-if-equal' in web-http chunked encoding tests., Andy Wingo, 2016/05/22
- [Guile-commits] 13/47: Fix typo in manual., Andy Wingo, 2016/05/22
- [Guile-commits] 19/47: Fix uses of 'scm_gc_protect', which does not exist, in the manual., Andy Wingo, 2016/05/22
- [Guile-commits] 21/47: psyntax: Fix bug in match-each+., Andy Wingo, 2016/05/22
- [Guile-commits] 15/47: i18n: Check for non-POSIX strtol_l., Andy Wingo, 2016/05/22
- [Guile-commits] 28/47: i18n: Add new collation test for posterity.,
Andy Wingo <=
- [Guile-commits] 05/47: tests: Make 'test-guild-compile' more reliable., Andy Wingo, 2016/05/22
- [Guile-commits] 32/47: Remove SIGEV constant definitions., Andy Wingo, 2016/05/22
- [Guile-commits] 04/47: Don't return expressions from void functions in numbers.c, Andy Wingo, 2016/05/22
- [Guile-commits] 31/47: Add Hurd signal and error constants., Andy Wingo, 2016/05/22
- [Guile-commits] 08/47: web: Export 'server-impl' procedures and the 'http' server implementation., Andy Wingo, 2016/05/22
- [Guile-commits] 39/47: Bump user-visible copyright years to 2015., Andy Wingo, 2016/05/22
- [Guile-commits] 43/47: SRFI-19: Update the table of leap seconds., Andy Wingo, 2016/05/22
- [Guile-commits] 41/47: http: Accept empty reason phrases., Andy Wingo, 2016/05/22
- [Guile-commits] 42/47: http: Use 'read-header-line' instead of 'read-line*'., Andy Wingo, 2016/05/22
- [Guile-commits] 47/47: Merge from stable-2.0, Andy Wingo, 2016/05/22