[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/10: tests: Use ‘test-equal’ for ‘terminal-string-width’ tests.
From: |
guix-commits |
Subject: |
02/10: tests: Use ‘test-equal’ for ‘terminal-string-width’ tests. |
Date: |
Sat, 25 Nov 2023 10:33:27 -0500 (EST) |
civodul pushed a commit to branch master
in repository guix.
commit e04f8fe4ea50f81847cad98a5dc6b32c27b81ea2
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Thu Nov 23 15:22:06 2023 +0100
tests: Use ‘test-equal’ for ‘terminal-string-width’ tests.
* tests/syscalls.scm ("terminal-string-width English")
("terminal-string-width Japanese"): Use ‘test-equal’.
Change-Id: I3791b2e4c9e35735db6c6da995da8ef0f9a71804
---
tests/syscalls.scm | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/tests/syscalls.scm b/tests/syscalls.scm
index eb85b358c4..340c1147de 100644
--- a/tests/syscalls.scm
+++ b/tests/syscalls.scm
@@ -583,11 +583,13 @@
(test-assert "terminal-rows"
(> (terminal-rows) 0))
-(test-assert "terminal-string-width English"
- (= (terminal-string-width "hello") 5))
+(test-equal "terminal-string-width English"
+ 5
+ (terminal-string-width "hello"))
-(test-assert "terminal-string-width Japanese"
- (= (terminal-string-width "今日は") 6))
+(test-equal "terminal-string-width Japanese"
+ 6
+ (terminal-string-width "今日は"))
(test-assert "openpty"
(let ((head inferior (openpty)))
- branch master updated (1566e00fbc -> 13bc0633e7), guix-commits, 2023/11/25
- 02/10: tests: Use ‘test-equal’ for ‘terminal-string-width’ tests.,
guix-commits <=
- 01/10: syscalls: Add fallback case for ‘terminal-string-width’., guix-commits, 2023/11/25
- 05/10: gnu: commencement: Use locales for the right libc version on GNU/Hurd., guix-commits, 2023/11/25
- 07/10: gnu: conky: Update to 1.19.6., guix-commits, 2023/11/25
- 04/10: doc: Fix childhurd host SSH port number., guix-commits, 2023/11/25
- 06/10: gnu: network-manager-applet: Update to 1.34.0., guix-commits, 2023/11/25
- 03/10: tests: Import (guix build syscalls) when (guix build store-copy) is used., guix-commits, 2023/11/25
- 08/10: gnu: emacs-ein: Update to 20230826., guix-commits, 2023/11/25
- 09/10: build-system/guile: Add #:substitutable? argument to build system., guix-commits, 2023/11/25
- 10/10: build-system/meson: Add #:substitutable? argument to build system., guix-commits, 2023/11/25