guile-commits
[Top][All Lists]
Advanced

[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"



reply via email to

[Prev in Thread] Current Thread [Next in Thread]