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: I3791b2e4c9e35735db6c6da995da8ef0f9a71804master
parent
a14dafaa01
commit
e04f8fe4ea
|
@ -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)))
|
||||
|
|
Reference in New Issue