diff options
author | William Carroll <wpcarro@gmail.com> | 2022-07-30T14·26-0700 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2022-07-30T14·28+0000 |
commit | 77aeb57c645d731508da8cbfd0862cd822c088a1 (patch) | |
tree | 7d9f97652cc3ba823c760c1e93a23752b64c3875 /users/wpcarro/emacs/pkgs/struct/tests.el | |
parent | a1dfbbe79e188e6da8eff8a4c7eead4d9d5a3a09 (diff) |
fix(wpcarro/emacs): Use should macro in struct.el tests r/4358
:) Change-Id: Ia6b4697d002394a7e1d913031849b383ed424ad5 Reviewed-on: https://cl.tvl.fyi/c/depot/+/6013 Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com> Tested-by: BuildkiteCI
Diffstat (limited to 'users/wpcarro/emacs/pkgs/struct/tests.el')
-rw-r--r-- | users/wpcarro/emacs/pkgs/struct/tests.el | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/users/wpcarro/emacs/pkgs/struct/tests.el b/users/wpcarro/emacs/pkgs/struct/tests.el index 619c54f451f8..ee48c2f6b5d1 100644 --- a/users/wpcarro/emacs/pkgs/struct/tests.el +++ b/users/wpcarro/emacs/pkgs/struct/tests.el @@ -14,12 +14,11 @@ (cl-defstruct dummy name age) (defvar struct--test-dummy (make-dummy :name "Roofus" :age 19)) (struct-set! dummy name "Doofus" struct--test-dummy) - (string= "Doofus" (dummy-name struct--test-dummy))) + (should (string= "Doofus" (dummy-name struct--test-dummy)))) (ert-deftest struct-set () (cl-defstruct dummy name age) (defvar struct--test-dummy (make-dummy :name "Roofus" :age 19)) (let ((result (struct-set dummy name "Shoofus" struct--test-dummy))) - (and - (string= "Roofus" (dummy-name struct--test-dummy)) - (string= "Shoofus" (dummy-name result))))) + (should (string= "Roofus" (dummy-name struct--test-dummy))) + (should (string= "Shoofus" (dummy-name result))))) |