aboutsummaryrefslogtreecommitdiff
path: root/tests/test/translation.scm
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-10-02 19:26:40 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-10-02 19:28:44 +0200
commit712654d4c023a2ab13190c6905d313e0ba897965 (patch)
treeb8505b420d6621022fa6a46271340071d8881322 /tests/test/translation.scm
parentMade displayln into a library export. (diff)
downloadcalp-712654d4c023a2ab13190c6905d313e0ba897965.tar.gz
calp-712654d4c023a2ab13190c6905d313e0ba897965.tar.xz
Rewrite test running system.
Diffstat (limited to 'tests/test/translation.scm')
-rw-r--r--tests/test/translation.scm15
1 files changed, 0 insertions, 15 deletions
diff --git a/tests/test/translation.scm b/tests/test/translation.scm
deleted file mode 100644
index 5fb32ab0..00000000
--- a/tests/test/translation.scm
+++ /dev/null
@@ -1,15 +0,0 @@
-(define-module (test translation)
- :use-module (srfi srfi-64)
- :use-module (srfi srfi-88)
- :use-module (calp translation)
- :use-module (ice-9 i18n))
-
-(define sv (make-locale (list LC_CTYPE LC_MESSAGES) "sv_SE.UTF-8"))
-
-;; empty key should give us translation header
-;; this also tests that translations are properly loaded
-(test-assert "translations" (string? (translate "")))
-
-(test-equal "yes-no yes" 'yes (yes-no-check "y" sv))
-(test-equal "yes-no no" 'no (yes-no-check "n" sv))
-(test-equal "yes-no invalid" #f (yes-no-check "other" sv))