@@ -50,6 +50,56 @@ vice versa."
50
50
` (expand-assert ' equal-result , form , form , expected , extras :test #' equalp
51
51
:full-form ' ,whole))
52
52
53
+ (defmacro assert-string= (&whole whole expected form &rest extras)
54
+ " Assert whether expected and form are STRING=."
55
+ ` (expand-assert ' equal-result , form , form , expected , extras :test #' string=
56
+ :full-form ' ,whole))
57
+
58
+ (defmacro assert-string-equal (&whole whole expected form &rest extras)
59
+ " Assert whether expected and form are STRING-EQUAL."
60
+ ` (expand-assert ' equal-result , form , form , expected , extras :test #' string-equal
61
+ :full-form ' ,whole))
62
+
63
+ (defmacro assert-string/= (&whole whole expected form &rest extras)
64
+ " Assert whether expected and form are STRING/=."
65
+ ` (expand-assert ' equal-result , form , form , expected , extras :test #' string/=
66
+ :full-form ' ,whole))
67
+
68
+ (defmacro assert-string-not-equal (&whole whole expected form &rest extras)
69
+ " Assert whether expected and form are STRING-NOT-EQUAL."
70
+ ` (expand-assert ' equal-result , form , form , expected , extras :test #' string-not-equal
71
+ :full-form ' ,whole))
72
+
73
+ (defmacro assert-char= (&whole whole expected form &rest extras)
74
+ " Assert whether expected and form are CHAR=."
75
+ ` (expand-assert ' equal-result , form , form , expected , extras :test #' char=
76
+ :full-form ' ,whole))
77
+
78
+ (defmacro assert-char-equal (&whole whole expected form &rest extras)
79
+ " Assert whether expected and form are CHAR-EQUAL."
80
+ ` (expand-assert ' equal-result , form , form , expected , extras :test #' char-equal
81
+ :full-form ' ,whole))
82
+
83
+ (defmacro assert-char/= (&whole whole expected form &rest extras)
84
+ " Assert whether expected and form are CHAR/=."
85
+ ` (expand-assert ' equal-result , form , form , expected , extras :test #' char/=
86
+ :full-form ' ,whole))
87
+
88
+ (defmacro assert-char-not-equal (&whole whole expected form &rest extras)
89
+ " Assert whether expected and form are CHAR-NOT-EQUAL."
90
+ ` (expand-assert ' equal-result , form , form , expected , extras :test #' char-not-equal
91
+ :full-form ' ,whole))
92
+
93
+ (defmacro assert= (&whole whole expected form &rest extras)
94
+ " Assert whether expected and form are =."
95
+ ` (expand-assert ' equal-result , form , form , expected , extras :test #' =
96
+ :full-form ' ,whole))
97
+
98
+ (defmacro assert/= (&whole whole expected form &rest extras)
99
+ " Assert whether expected and form are /=."
100
+ ` (expand-assert ' equal-result , form , form , expected , extras :test #' /=
101
+ :full-form ' ,whole))
102
+
53
103
(defmacro assert-typep (&whole whole expected-type form &rest extras)
54
104
" Assert whether expected and form are TYPEP."
55
105
` (expand-assert
@@ -267,4 +317,3 @@ vice versa."
267
317
(defmacro with-failure-debugging (() &body body)
268
318
" A context macro that invokes the debugger on failed assertions"
269
319
` (with-failure-debugging-context (lambda () ,@ body)))
270
-
0 commit comments