def test_EnumIn2(self): from phenum.enumeration import _enum_in from os import system, chdir, getcwd curdir = getcwd() chdir('tests/enumeration/fcc_2/') args = { 'profile': None, 'savedist': False, 'verbose': None, 'outfile': 'test_enum.in', 'enum': False, 'lattice': 'lattice.in', 'acceptrate': None, 'examples': False, 'sizes': [3, 4], 'debug': False, 'input': 'polya.out', 'polya': False, 'super': False, 'distribution': ['all', 'all'], 'seed': None, 'filter': None } _enum_in(args) chdir(curdir) self._compare_files('tests/enumeration/fcc_2/test_enum.in', 'tests/enumeration/fcc_2/enum.in_3_4') system("rm tests/enumeration/fcc_2/test_enum.in")
def test_EnumIn14(self): from phenum.enumeration import _enum_in import sys from os import system, getcwd, chdir curdir = getcwd() chdir('tests/enumeration/sc_1/') args = { 'profile': None, 'savedist': False, 'verbose': None, 'outfile': 'test_enum.in', 'enum': False, 'lattice': 'lattice.in', 'acceptrate': None, 'examples': False, 'sizes': [3, 5], 'debug': False, 'input': 'polya.out', 'polya': False, 'super': False, 'distribution': ['all', '10'], 'seed': 1010, 'filter': ['shape', 'enum.in_shape2'] } _enum_in(args) chdir(curdir) if sys.version_info[0] < 3: self._compare_files('tests/enumeration/sc_1/test_enum.in', 'tests/enumeration/sc_1/enum.in_shape2_10_p2') else: self._compare_files('tests/enumeration/sc_1/test_enum.in', 'tests/enumeration/sc_1/enum.in_shape2_10_p3') system("rm tests/enumeration/sc_1/test_enum.in")
def test_EnumIn1(self): from phenum.enumeration import _enum_in from os import system, chdir, getcwd curdir = getcwd() chdir('tests/enumeration/fcc_1/') args = {'profile': None, 'savedist': False, 'verbose': None, 'outfile': 'test_enum.in', 'enum': False,'lattice': 'lattice.in', 'acceptrate': None, 'examples': False, 'sizes': [2,6], 'debug': False, 'input': 'polya.out', 'polya': False, 'super': False, 'distribution': ['all','all'],'seed':None,'filter':None} _enum_in(args) chdir(curdir) self._compare_files('tests/enumeration/fcc_1/test_enum.in', 'tests/enumeration/fcc_1/enum.in_2_6') system("rm tests/enumeration/fcc_1/test_enum.in")
def test_EnumIn14(self): from phenum.enumeration import _enum_in import sys from os import system, getcwd, chdir curdir = getcwd() chdir('tests/enumeration/sc_1/') args = {'profile': None, 'savedist': False, 'verbose': None, 'outfile': 'test_enum.in', 'enum': False, 'lattice': 'lattice.in', 'acceptrate': None, 'examples': False, 'sizes': [3, 5], 'debug': False, 'input': 'polya.out', 'polya': False, 'super': False, 'distribution': ['all','10'],'seed':1010, 'filter':['shape','enum.in_shape2']} _enum_in(args) chdir(curdir) if sys.version_info[0] < 3: self._compare_files('tests/enumeration/sc_1/test_enum.in', 'tests/enumeration/sc_1/enum.in_shape2_10_p2') else: self._compare_files('tests/enumeration/sc_1/test_enum.in', 'tests/enumeration/sc_1/enum.in_shape2_10_p3') system("rm tests/enumeration/sc_1/test_enum.in")