fix(wpcarro/emacs): Use should macro in string.el tests

:)

Change-Id: Ic20b9c5c66465f2b28f58239a9e7d38dc19f2260
Reviewed-on: https://cl.tvl.fyi/c/depot/+/6012
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Tested-by: BuildkiteCI
This commit is contained in:
William Carroll 2022-07-30 07:25:41 -07:00 committed by clbot
parent 5c99ba9702
commit a1dfbbe79e

View file

@ -10,13 +10,13 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(ert-deftest string-caps->kebab ()
(string= "foo-bar-baz" (string-caps->kebab "FOO_BAR_BAZ")))
(should (string= "foo-bar-baz" (string-caps->kebab "FOO_BAR_BAZ"))))
(ert-deftest string-kebab->caps ()
(string= "FOO_BAR_BAZ" (string-kebab->caps "foo-bar-baz")))
(should (string= "FOO_BAR_BAZ" (string-kebab->caps "foo-bar-baz"))))
(ert-deftest string-lower->caps ()
(string= "FOO_BAR_BAZ" (string-lower->caps "foo bar baz")))
(should (string= "FOO_BAR_BAZ" (string-lower->caps "foo bar baz"))))
(ert-deftest string-lower->kebab ()
(string= "foo-bar-baz" (string-lower->kebab "foo bar baz")))
(should (string= "foo-bar-baz" (string-lower->kebab "foo bar baz"))))