Changeset 6260


Ignore:
Timestamp:
Feb 3, 2009, 10:47:52 AM (16 years ago)
Author:
rwilson
Message:

Better test of hashing collision.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/caching/test_caching.py

    r6232 r6260  
    203203                       compression=comp, verbose=verbose)
    204204           
    205 
    206             #print T1
    207             #print T2
    208             assert T2 != T1
    209 
    210            
    211 
    212            
    213            
     205            T1_ref = f_numeric(A0, A0)
     206            T2_ref = f_numeric(A1, A1)
     207
     208            assert num.alltrue(T1 == T1_ref)
     209            assert num.alltrue(T2 == T2_ref)
     210
     211
    214212    def test_caching_of_dictionaries(self):
    215213        """test_caching_of_dictionaries
Note: See TracChangeset for help on using the changeset viewer.