We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0097953 commit bee3b63Copy full SHA for bee3b63
tests/test_cache.py
@@ -8,7 +8,7 @@
8
pytest.skip("Skipping Tests JIT is disabled", allow_module_level=True)
9
10
11
-def test_cache():
+def test_cache_save():
12
def get_cache_fnames_ref():
13
cache._clear()
14
cache._enable()
@@ -40,3 +40,18 @@ def get_cache_fnames_comp():
40
41
assert sorted(ref_data) == sorted(comp_data)
42
assert set(ref_index).issubset(comp_index)
43
+
44
45
+def test_cache_save_after_clear():
46
+ T = np.random.rand(10)
47
+ m = 3
48
+ stump(T, m)
49
50
+ cache._save()
51
+ ref_cache = cache._get_cache()
52
53
+ cache._clear()
54
55
+ comp_cache = cache._get_cache()
56
57
+ assert sorted(ref_cache) == sorted(comp_cache)
0 commit comments