[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/boxy b09ac82399 12/44: Test chinese characters
From: |
ELPA Syncer |
Subject: |
[elpa] externals/boxy b09ac82399 12/44: Test chinese characters |
Date: |
Sun, 5 May 2024 22:50:34 -0400 (EDT) |
branch: externals/boxy
commit b09ac8239920188454c646523acb4256dcfd100a
Author: Amy Grinn <grinn.amy@gmail.com>
Commit: Amy Grinn <grinn.amy@gmail.com>
Test chinese characters
---
tests/boxy-test-chinese.el | 51 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 51 insertions(+)
diff --git a/tests/boxy-test-chinese.el b/tests/boxy-test-chinese.el
new file mode 100644
index 0000000000..0d9f30ef30
--- /dev/null
+++ b/tests/boxy-test-chinese.el
@@ -0,0 +1,51 @@
+;;; boxy-test-chinese.el --- Chinese test cases for boxy -*- lexical-binding:
t -*-
+
+;; Copyright (C) 2021 Free Software Foundation, Inc.
+
+;; Author: Tyler Grinn <tylergrinn@gmail.com>
+
+;;; Code:
+
+;;;; Requirements
+
+(require 'boxy-test-setup)
+
+;;;; Tests
+
+(ert-deftest boxy-test-chinese-hello ()
+ (let* ((world (boxy-box))
+ (thing (boxy-box :name "thing" :margin-y 0))
+ (hello (boxy-box :name "你好" :rel "in")))
+ (boxy-add-next thing world)
+ (boxy-add-next hello thing)
+ (boxy-pp world)
+ (with-current-buffer (get-buffer "*Boxy*")
+ (should (string= (buffer-string)
+ "
+╭──────╮
+│thing │
+│╭────╮│
+││你好││
+│╰────╯│
+╰──────╯
+")))))
+
+(ert-deftest boxy-test-chinese-greeting ()
+ (let* ((world (boxy-box))
+ (greeting (boxy-box :name "我叫泰勒" :margin-y 0))
+ (hello (boxy-box :name "你好" :rel "in")))
+ (boxy-add-next greeting world)
+ (boxy-add-next hello greeting)
+ (boxy-pp world)
+ (with-current-buffer (get-buffer "*Boxy*")
+ (should (string= (buffer-string)
+ "
+╭────────╮
+│我叫泰勒│
+│╭────╮ │
+││你好│ │
+│╰────╯ │
+╰────────╯
+")))))
+
+
- [elpa] externals/boxy ca62acadd8 03/44: Added elpaignore, (continued)
- [elpa] externals/boxy ca62acadd8 03/44: Added elpaignore, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy de6406361c 16/44: Bump version, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 5bef288d19 19/44: Add support for chinese characters in tooltip, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 892cec5a2c 21/44: Typo in boxy--add-matching, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 6cdb5e992d 26/44: Bump version, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy af4e74a80a 33/44: Revert "Using org reveal after navigating to a box", ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 63be53f8c3 36/44: Updated version, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 61938c681f 38/44: Ensure boxy-mode is launched with a fixed-pitch font, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 90034e1cc3 42/44: Updated package location, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 0bc52cec79 04/44: Added patch from Stefan Monnier, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy b09ac82399 12/44: Test chinese characters,
ELPA Syncer <=
- [elpa] externals/boxy 791d0f0cde 13/44: Using string-width instead of length, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy f6aa91e014 07/44: Merge branch 'next' into 'main', ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 52927fd5b6 08/44: Use relative paths in elpa ignore, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy bd8097e1b7 09/44: Merge branch 'next' into 'main', ELPA Syncer, 2024/05/05
- [elpa] externals/boxy c8c22248db 15/44: Updated docstring, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 1b5ed6c758 17/44: Merge branch 'next' into 'main', ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 6f4b8bf597 20/44: Go to first marker first, then cycle, ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 0509c51105 29/44: Collapse grandchildren when grandparent collapsed., ELPA Syncer, 2024/05/05
- [elpa] externals/boxy 10dfc2569d 31/44: Merge branch 'DamienCassou-main-patch-54220' into 'main', ELPA Syncer, 2024/05/05
- [elpa] externals/boxy a59a30e0ed 40/44: Update version, ELPA Syncer, 2024/05/05