misc, tests

This commit is contained in:
2024-02-29 14:08:04 +01:00
parent d84138f668
commit 843b077850
4 changed files with 23 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
import scgenerator.cache as scc
from scgenerator.cache import Cache, methodcache, normalize_path
from scgenerator.cache import Cache, normalize_path
def test_io():
@@ -74,7 +74,6 @@ class Stuff:
def test_decorator():
cache = Cache("Test")
cache.compile_class(Stuff)
cache.delete()
call_count = 0
@@ -125,3 +124,11 @@ def test_normalize():
)
== "sdfl asdfk asd"
)
assert (
normalize_path(
"i=-1 [8.50e-07 9.00e-07 9.44e-07 1.01e-06 1.00e-06 1.05e-06 "
"1.10e-06 1.15e-06\n 1.20e-06 1.25e-06] [1.5e-08]nm.scbin"
)
== "i=-1 [8.50e-07 9.00e-07 9.44e-07 1.01e-06 1.00e-06 1.05e-06 1.10e-06 1.15e-06 "
"1.20e-06 1.25e-06] [1.5e-08]nm.scbin"
)