guix-commits
[Top][All Lists]
Advanced

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



reply via email to

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