Spaces:
Running
Running
File size: 320 Bytes
51a2766 21dcd64 |
1 2 3 4 5 6 7 8 9 10 11 |
from facefusion.common_helper import create_metavar, create_range
def test_create_metavar() -> None:
assert create_metavar([ 1, 2, 3, 4, 5 ]) == '[1-5]'
def test_create_range() -> None:
assert create_range(0.0, 1.0, 0.5) == [ 0.0, 0.5, 1.0 ]
assert create_range(0.0, 0.2, 0.05) == [ 0.0, 0.05, 0.10, 0.15, 0.20 ]
|