Skip to content

Commit 38ca0ac

Browse files
committed
Fixed bug with integers and strings types in deep-equal
1 parent 07981e9 commit 38ca0ac

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

DiffBackend/tests/test-utils.lisp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,11 @@
77
(in-package :diff-backend/tests/test-utils)
88

99
(defun deep-equal (obj1 obj2)
10-
(if (equal (type-of obj1) (type-of obj2))
10+
(if (or (and (integerp obj1)
11+
(integerp obj2))
12+
(and (stringp obj1)
13+
(stringp obj2))
14+
(equal (type-of obj1) (type-of obj2)))
1115
(if (typecase obj1
1216
(standard-object
1317
(loop :for slot :in (closer-mop:class-slots (class-of obj1))

0 commit comments

Comments
 (0)