WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit ac9e40a

Browse files
committed
test: add block size range to multi_level tests
1 parent 1868dac commit ac9e40a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_multilevel.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
@pytest.mark.parametrize("drd", [0, 2])
1515
@pytest.mark.parametrize("uf", [1, 2])
1616
@pytest.mark.parametrize("ub", [1, 2])
17-
@pytest.mark.parametrize("block_size", [1])
17+
@pytest.mark.parametrize("block_size", [1, 5, 10])
1818
def test_forward_nt(nt, mwd, mrd, dwd, drd, uf, ub, singlefile, block_size):
1919
nx = 10
2020
ny = 10
@@ -44,7 +44,7 @@ def test_forward_nt(nt, mwd, mrd, dwd, drd, uf, ub, singlefile, block_size):
4444
@pytest.mark.parametrize("drd", [0, 2])
4545
@pytest.mark.parametrize("uf", [1, 2])
4646
@pytest.mark.parametrize("ub", [1, 2])
47-
@pytest.mark.parametrize("block_size", [1])
47+
@pytest.mark.parametrize("block_size", [1, 5, 10])
4848
def test_reverse_nt(nt, mwd, mrd, dwd, drd, uf, ub, singlefile, block_size):
4949
nx = 10
5050
ny = 10
@@ -77,7 +77,7 @@ def test_reverse_nt(nt, mwd, mrd, dwd, drd, uf, ub, singlefile, block_size):
7777
@pytest.mark.parametrize("drd", [0, 2])
7878
@pytest.mark.parametrize("uf", [1, 2])
7979
@pytest.mark.parametrize("ub", [1, 2])
80-
@pytest.mark.parametrize("block_size", [1])
80+
@pytest.mark.parametrize("block_size", [1, 5, 10])
8181
def test_num_loads_and_saves(nt, mwd, mrd, dwd, drd, uf, ub, singlefile, block_size):
8282
cp = SimpleCheckpoint()
8383
f = SimpleOperator()
@@ -105,7 +105,7 @@ def test_num_loads_and_saves(nt, mwd, mrd, dwd, drd, uf, ub, singlefile, block_s
105105
@pytest.mark.parametrize("drd", [0, 2])
106106
@pytest.mark.parametrize("uf", [1, 2])
107107
@pytest.mark.parametrize("ub", [1, 2])
108-
@pytest.mark.parametrize("block_size", [1])
108+
@pytest.mark.parametrize("block_size", [1, 5, 10])
109109
def test_multi_and_single_outputs(nt, mwd, mrd, dwd, drd, uf, ub, block_size):
110110
"""
111111
Tests whether SingleLevelRevolver and MultilevelRevolver are producing

0 commit comments

Comments
 (0)