mirror of
				https://github.com/deepset-ai/haystack.git
				synced 2025-10-31 01:39:45 +00:00 
			
		
		
		
	
		
			
	
	
		
			11 lines
		
	
	
		
			241 B
		
	
	
	
		
			Python
		
	
	
	
	
	
		
		
			
		
	
	
			11 lines
		
	
	
		
			241 B
		
	
	
	
		
			Python
		
	
	
	
	
	
|   | import pytest | ||
|  | 
 | ||
|  | from haystack.mmh3 import hash128 | ||
|  | 
 | ||
|  | 
 | ||
|  | @pytest.mark.unit | ||
|  | def test_mmh3(): | ||
|  |     content = "This is the document text" * 100 | ||
|  |     hashed_content = hash128(content) | ||
|  |     assert hashed_content == 305042678480070366459393623793278501577 |