misc, tests
This commit is contained in:
@@ -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"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user