Fixed WHILE-MEASURING macro for case when CATCH-ERRORS-P argument is given
[lift.git] / test / equality-tests.lisp
blob10cf85bf7dc6fb9d7f7e35ebc94c519c96ac2751
1 (in-package #:lift)
3 #+(or)
4 (run-tests :suite 'equality-test)
6 (deftestsuite equality-test (lift-test)
7 ())
9 (deftestsuite equality-test-1 (equality-test)
11 (:equality-test '=)
12 (:documentation "Ensure that equality-test is inherited"))
14 (addtest (equality-test-1) test-1
15 (ensure-same *lift-equality-test* '= :test #'equal))
17 (deftestsuite equality-test-2 (equality-test-1)
18 ())
20 (addtest (equality-test-2) test-1
21 (ensure-same *lift-equality-test* '= :test #'equal))
23 (deftestsuite equality-test-3 (equality-test-1)
25 (:equality-test 'equalp))
27 (addtest (equality-test-3) test-1
28 (ensure-same *lift-equality-test* 'equalp :test #'equal))
30 (deftestsuite test-equality-test-works (equality-test)
32 (:equality-test 'equalp)
33 (:setup
34 (ensure-same #(1 2 4) #(1 2 4))))
36 (addtest (test-equality-test-works)
37 test-1
38 (ensure-same #(1 2 4) #(1 2 4)))