@@ -49,7 +49,7 @@ def test_create_node():
4949def test_create_tesseract_config ():
5050 assert (
5151 str (tesseract_decoder .tesseract .TesseractConfig (_DETECTOR_ERROR_MODEL ))
52- == "TesseractConfig(dem=DetectorErrorModel_Object, det_beam=65535 , no_revisit_dets=0 , at_most_two_errors_per_detector=0, verbose=0, merge_errors=1, pqlimit=18446744073709551615 , det_orders=[], det_penalty=0, create_visualization=0)"
52+ == "TesseractConfig(dem=DetectorErrorModel_Object, det_beam=5 , no_revisit_dets=1 , at_most_two_errors_per_detector=0, verbose=0, merge_errors=1, pqlimit=200000 , det_orders=[[1, 0], [0, 1], [1, 0], [0, 1], [1, 0], [0, 1], [1, 0], [1, 0], [0, 1], [1, 0], [1, 0], [1, 0], [0, 1], [0, 1], [0, 1], [1, 0], [0, 1], [0, 1], [1, 0], [1, 0] ], det_penalty=0, create_visualization=0)"
5353 )
5454 assert (
5555 tesseract_decoder .tesseract .TesseractConfig (_DETECTOR_ERROR_MODEL ).dem
@@ -66,7 +66,7 @@ def test_create_tesseract_config_with_dem():
6666 # Assert the string representation matches the expected format.
6767 assert (
6868 str (config )
69- == "TesseractConfig(dem=DetectorErrorModel_Object, det_beam=65535 , no_revisit_dets=0 , at_most_two_errors_per_detector=0, verbose=0, merge_errors=1, pqlimit=18446744073709551615 , det_orders=[], det_penalty=0, create_visualization=0)"
69+ == "TesseractConfig(dem=DetectorErrorModel_Object, det_beam=5 , no_revisit_dets=1 , at_most_two_errors_per_detector=0, verbose=0, merge_errors=1, pqlimit=200000 , det_orders=[[1, 0], [0, 1], [1, 0], [0, 1], [1, 0], [0, 1], [1, 0], [1, 0], [0, 1], [1, 0], [1, 0], [1, 0], [0, 1], [0, 1], [0, 1], [1, 0], [0, 1], [0, 1], [1, 0], [1, 0] ], det_penalty=0, create_visualization=0)"
7070 )
7171
7272 # Assert that the `dem` attribute is correctly set.
@@ -93,7 +93,7 @@ def test_create_tesseract_config_with_dem_and_custom_args():
9393 # Assert the string representation is as expected.
9494 assert (
9595 str (config )
96- == "TesseractConfig(dem=DetectorErrorModel_Object, det_beam=100, no_revisit_dets=0 , at_most_two_errors_per_detector=0, verbose=0, merge_errors=0, pqlimit=18446744073709551615 , det_orders=[], det_penalty=0.5, create_visualization=0)"
96+ == "TesseractConfig(dem=DetectorErrorModel_Object, det_beam=100, no_revisit_dets=1 , at_most_two_errors_per_detector=0, verbose=0, merge_errors=0, pqlimit=200000 , det_orders=[[1, 0], [0, 1], [1, 0], [0, 1], [1, 0], [0, 1], [1, 0], [1, 0], [0, 1], [1, 0], [1, 0], [1, 0], [0, 1], [0, 1], [0, 1], [1, 0], [0, 1], [0, 1], [1, 0], [1, 0] ], det_penalty=0.5, create_visualization=0)"
9797 )
9898
9999def test_compile_decoder_for_dem_basic_functionality ():
@@ -164,7 +164,7 @@ def test_create_tesseract_config_no_dem():
164164 # Assert that the string representation shows the default values.
165165 assert (
166166 str (config_default )
167- == "TesseractConfig(dem=DetectorErrorModel_Object, det_beam=65535 , no_revisit_dets=0 , at_most_two_errors_per_detector=0, verbose=0, merge_errors=1, pqlimit=18446744073709551615 , det_orders=[], det_penalty=0, create_visualization=0)"
167+ == "TesseractConfig(dem=DetectorErrorModel_Object, det_beam=5 , no_revisit_dets=1 , at_most_two_errors_per_detector=0, verbose=0, merge_errors=1, pqlimit=200000 , det_orders=[], det_penalty=0, create_visualization=0)"
168168 )
169169
170170def test_create_tesseract_config_no_dem_with_custom_args ():
@@ -184,7 +184,7 @@ def test_create_tesseract_config_no_dem_with_custom_args():
184184 # Assert that the string representation reflects the custom values.
185185 assert (
186186 str (config_custom )
187- == "TesseractConfig(dem=DetectorErrorModel_Object, det_beam=15, no_revisit_dets=0 , at_most_two_errors_per_detector=0, verbose=1, merge_errors=1, pqlimit=18446744073709551615 , det_orders=[], det_penalty=0, create_visualization=0)"
187+ == "TesseractConfig(dem=DetectorErrorModel_Object, det_beam=15, no_revisit_dets=1 , at_most_two_errors_per_detector=0, verbose=1, merge_errors=1, pqlimit=200000 , det_orders=[[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [], [] ], det_penalty=0, create_visualization=0)"
188188 )
189189
190190
0 commit comments