mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-30 23:47:31 +03:00 
			
		
		
		
	* Add incomplete tests of asciify function
This commit is contained in:
		
							parent
							
								
									151aa14bba
								
							
						
					
					
						commit
						c5abb81f4c
					
				
							
								
								
									
										18
									
								
								tests/test_asciify.py
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								tests/test_asciify.py
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,18 @@ | ||||||
|  | # -*- coding: utf8 -*- | ||||||
|  | 
 | ||||||
|  | from __future__ import unicode_literals | ||||||
|  | import pytest | ||||||
|  | 
 | ||||||
|  | from spacy.orth import asciify | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | def test_tilde(): | ||||||
|  |     string = u'hõmbre' | ||||||
|  |     assert asciify(string) == u'hombre' | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | def test_smart_quote(): | ||||||
|  |     string = u'“' | ||||||
|  |     assert asciify(string) == '"' | ||||||
|  |     string = u'”' | ||||||
|  |     assert asciify(string) == '"' | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user