mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 16:07:41 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			284 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			284 B
		
	
	
	
		
			Python
		
	
	
	
	
	
| from __future__ import unicode_literals
 | |
| import pytest
 | |
| 
 | |
| from ...language import Language
 | |
| 
 | |
| def test_issue1380_empty_string():
 | |
|     nlp = Language()
 | |
|     doc = nlp('')
 | |
|     assert len(doc) == 0
 | |
| 
 | |
| @pytest.mark.models('en')
 | |
| def test_issue1380_en(EN):
 | |
|     doc = EN('')
 | |
|     assert len(doc) == 0
 |