( self )
| 95 | self.assertNotEqual( h, h2 ) |
| 96 | |
| 97 | def testKnownHashes( self ) : |
| 98 | |
| 99 | # test against hashes generated using the smhasher code directly |
| 100 | |
| 101 | h = IECore.MurmurHash() |
| 102 | h.append( "the quick brown fox jumps over the lazy dog" ) |
| 103 | self.assertEqual( |
| 104 | str( h ), |
| 105 | "f476fee540bfc268dc36e7f3d95ddb72", |
| 106 | ) |
| 107 | |
| 108 | h = IECore.MurmurHash() |
| 109 | h.append( 101 ) |
| 110 | self.assertEqual( |
| 111 | str( h ), |
| 112 | "1739807a7ecb8d70bbf1c02a2a649b8f", |
| 113 | ) |
| 114 | |
| 115 | h = IECore.MurmurHash() |
| 116 | h.append( IECore.FloatVectorData( [ 1, 2, 3 ] ) ) |
| 117 | self.assertEqual( |
| 118 | str( h ), |
| 119 | "4f732afec7493057d3e7443b584cfd94", |
| 120 | ) |
| 121 | |
| 122 | def testStringRepeatability( self ) : |
| 123 |
nothing calls this directly
no test coverage detected