Raymond Toy pushed to branch issue-240-set-diff-with-hash-table at cmucl / cmucl

Commits:

1 changed file:

Changes:

  • tests/sets.lisp
    ... ... @@ -12,12 +12,12 @@
    12 12
       (let ((lisp::*min-list-length-for-hashtable* 2))
    
    13 13
         (assert-equal '(2 2 1)
    
    14 14
     		  (set-difference '(1 2 2 3) '(3 4)))
    
    15
    -    (assert-equal '(1 2 2)
    
    15
    +    (assert-equal '(2 2 1)
    
    16 16
     		  (set-difference '(1 2 2 3) '(3 4 5 6 7 8)))
    
    17 17
         (assert-equal '(2 2 1)
    
    18 18
     		  (set-difference '(1 2 2 3) '(3 4)
    
    19 19
     				  :test #'eql))
    
    20
    -    (assert-equal '(1 2 2)
    
    20
    +    (assert-equal '(2 2 1)
    
    21 21
     		  (set-difference '(1 2 2 3) '(3 4 5 6 7 8)
    
    22 22
     				  :test #'eql))))
    
    23 23
     
    
    ... ... @@ -26,11 +26,11 @@
    26 26
       (let ((lisp::*min-list-length-for-hashtable* 2))
    
    27 27
         (assert-equal '(b b a)
    
    28 28
     		  (set-difference '(a b b c) '(c d e) :test 'eq))
    
    29
    -    (assert-equal '(a b b)
    
    29
    +    (assert-equal '(b b a)
    
    30 30
     		  (set-difference '(a b b c) '(c d e f g h) :test 'eq))
    
    31 31
         (assert-equal '(b b a)
    
    32 32
     		  (set-difference '(a b b c) '(c d e) :test #'eq))
    
    33
    -    (assert-equal '(a b b)
    
    33
    +    (assert-equal '(b b a)
    
    34 34
     		  (set-difference '(a b b c) '(c d e f g h) :test #'eq))))
    
    35 35
     
    
    36 36
     (define-test set-diff.hash-equal
    
    ... ... @@ -40,7 +40,7 @@
    40 40
     		  (set-difference '("a" "b" "b" "c")
    
    41 41
     				  '("c" "d" "e")
    
    42 42
     				  :test 'equal))
    
    43
    -    (assert-equal '("a" "b" "b")
    
    43
    +    (assert-equal '("b" "b" "a")
    
    44 44
     		  (set-difference '("a" "b" "b" "c")
    
    45 45
     				  '("c" "d" "e" "f" "g" "h")
    
    46 46
     				  :test 'equal))
    
    ... ... @@ -48,7 +48,7 @@
    48 48
     		  (set-difference '("a" "b" "b" "c")
    
    49 49
     				  '("c" "d" "e")
    
    50 50
     				  :test #'equal))
    
    51
    -    (assert-equal '("a" "b" "b")
    
    51
    +    (assert-equal '("b" "b" "a")
    
    52 52
     		  (set-difference '("a" "b" "b" "c")
    
    53 53
     				  '("c" "d" "e" "f" "g" "h")
    
    54 54
     				  :test #'equal))))
    
    ... ... @@ -60,7 +60,7 @@
    60 60
     		  (set-difference '("a" "b" "b" "c")
    
    61 61
     				  '("C" "d" "e")
    
    62 62
     				  :test 'equalp))
    
    63
    -    (assert-equal '("a" "b" "b")
    
    63
    +    (assert-equal '("b" "b" "a")
    
    64 64
     		  (set-difference '("a" "b" "b" "C")
    
    65 65
     				  '("c" "D" "e" "f" "g" "h")
    
    66 66
     				  :test 'equalp))
    
    ... ... @@ -68,7 +68,7 @@
    68 68
     		  (set-difference '("a" "b" "b" "c")
    
    69 69
     				  '("C" "d" "e")
    
    70 70
     				  :test #'equalp))
    
    71
    -    (assert-equal '("a" "b" "b")
    
    71
    +    (assert-equal '("b" "b" "a")
    
    72 72
     		  (set-difference '("a" "b" "b" "C")
    
    73 73
     				  '("c" "D" "e" "f" "g" "h")
    
    74 74
     				  :test #'equalp))))