mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	
		
			
				
	
	
		
			15 lines
		
	
	
		
			308 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
		
			308 B
		
	
	
	
		
			Python
		
	
	
	
	
	
# coding: utf8
 | 
						|
from __future__ import unicode_literals
 | 
						|
 | 
						|
from spacy.util import decaying
 | 
						|
 | 
						|
 | 
						|
def test_issue3447():
 | 
						|
    sizes = decaying(10.0, 1.0, 0.5)
 | 
						|
    size = next(sizes)
 | 
						|
    assert size == 10.0
 | 
						|
    size = next(sizes)
 | 
						|
    assert size == 10.0 - 0.5
 | 
						|
    size = next(sizes)
 | 
						|
    assert size == 10.0 - 0.5 - 0.5
 |