Branch: Tag:

2006-01-31

2006-01-31 10:15:59 by Martin Stjernholm <mast@lysator.liu.se>

Fixed a typo in Array.diff3 that in some rare cases caused it to merge a
difference into a three-way equality.

Rev: lib/modules/Array.pmod:1.100
Rev: lib/modules/testsuite.in:1.29

1: - dnl $Id: testsuite.in,v 1.28 2004/05/01 12:31:35 mast Exp $ + dnl $Id: testsuite.in,v 1.29 2006/01/31 10:15:59 mast Exp $      dnl - Array   
268:    ({({({ }),({"a","c"}),({"b","a"})}),    ({({ }),({"a","c"}),({ })}),    ({({"b"}),({"a","c"}),({ })})})) + test_equal(Array.diff3(({1,2,3,4}),({1,6,7,2}),({1,3,4,2,6,7})), +  ({({({1}),({2}),({3,4}),({ }),({ }),({ })}), +  ({({1}),({ }),({ }),({ }),({6,7}),({2})}), +  ({({1}),({ }),({3,4}),({2}),({6,7}),({ })})}))      define(test_sort,[[    test_eq(Array.$1($2,$3), -1)