Skip to content

Commit ddcd6f5

Browse files
authored
Merge pull request #48 from PermutaTriangle/verification-strategy
Verification strategies
2 parents 5e1c58e + 39e06d8 commit ddcd6f5

28 files changed

+75
-70952
lines changed

gen_rec_prog.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
from comb_spec_searcher import *
66
from permuta import *
77
from tilescopethree import *
8-
from tilescopethree.strategies import one_by_one_verification
8+
from tilescopethree.strategies import one_by_one_verified
99
from tilescopethree.strategy_packs import point_placements_db
1010
from tilings import *
1111

1212
pack = point_placements_db
13-
pack.ver_strats = [one_by_one_verification]
13+
pack.ver_strats = [one_by_one_verified]
1414

1515
if len(sys.argv) > 1:
1616
inp = sys.argv[1]

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,6 @@ def read(fname):
3434
'pytest-cov==2.8.1',
3535
'pytest-pep8==1.0.6',
3636
'pytest-isort==0.3.1',
37+
'pytest-timeout==1.3.4',
3738
],
3839
)

tests/test_tilescope.py

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
from comb_spec_searcher import ProofTree
55
from tilescopethree import TileScopeTHREE
66
from tilescopethree.strategy_packs_v2 import (
7-
point_placements, point_placements_fusion,
8-
point_placements_fusion_with_interleaving,
7+
all_the_strategies_database_verified, point_placements,
8+
point_placements_fusion, point_placements_fusion_with_interleaving,
99
row_and_col_placements_fusion_with_interleaving_fusion)
1010

1111

@@ -14,6 +14,12 @@ def test_132():
1414
searcher = TileScopeTHREE('132', point_placements)
1515
t = searcher.auto_search(smallest=True)
1616
assert isinstance(t, ProofTree)
17+
18+
19+
@pytest.mark.xfail(reason='Generating function finding not implemented')
20+
def test_132_genf():
21+
searcher = TileScopeTHREE('132', point_placements)
22+
t = searcher.auto_search(smallest=True)
1723
gf = sympy.series(t.get_genf(), n=15)
1824
x = sympy.Symbol('x')
1925
assert ([gf.coeff(x, n) for n in range(13)] ==
@@ -22,6 +28,13 @@ def test_132():
2228

2329
@pytest.mark.timeout(20)
2430
def test_123():
31+
searcher = TileScopeTHREE('123', all_the_strategies_database_verified)
32+
t = searcher.auto_search(smallest=True)
33+
assert isinstance(t, ProofTree)
34+
35+
36+
@pytest.mark.timeout(20)
37+
def test_123_with_db():
2538
searcher = TileScopeTHREE('123', point_placements_fusion)
2639
t = searcher.auto_search(smallest=True)
2740
assert isinstance(t, ProofTree)

tilescopethree/strategies/verification_strategies/012_depth_4_database.txt

Lines changed: 0 additions & 222 deletions
This file was deleted.

tilescopethree/strategies/verification_strategies/012_depth_4_database_symmetry.txt

Lines changed: 0 additions & 444 deletions
This file was deleted.

tilescopethree/strategies/verification_strategies/012_depth_4_database_twisted.txt

Lines changed: 0 additions & 684 deletions
This file was deleted.

tilescopethree/strategies/verification_strategies/012_depth_5_database.txt

Lines changed: 0 additions & 2453 deletions
This file was deleted.

tilescopethree/strategies/verification_strategies/012_depth_5_database_symmetry.txt

Lines changed: 0 additions & 4906 deletions
This file was deleted.

tilescopethree/strategies/verification_strategies/012_depth_5_database_twisted.txt

Lines changed: 0 additions & 9326 deletions
This file was deleted.

tilescopethree/strategies/verification_strategies/1302_depth_5_database.txt

Lines changed: 0 additions & 10115 deletions
This file was deleted.

0 commit comments

Comments
 (0)