MCPcopy Create free account
hub / github.com/ImageEngine/cortex / testStringDifferences

Method testStringDifferences

test/IECore/MurmurHashTest.py:132–141  ·  view source on GitHub ↗
( self )

Source from the content-addressed store, hash-verified

130 self.assertEqual( h, h2 )
131
132 def testStringDifferences( self ) :
133
134 s = "i am a lovely string"
135 h = IECore.MurmurHash()
136 h.append( s )
137
138 for i in range( 1, len( s ) ) :
139 h2 = IECore.MurmurHash()
140 h2.append( s[0:-i] )
141 self.assertNotEqual( h, h2 )
142
143 def testInternedString( self ) :
144

Callers

nothing calls this directly

Calls 3

MurmurHashMethod · 0.80
appendMethod · 0.80
lenFunction · 0.50

Tested by

no test coverage detected