In addition to Games::Sudoku::General, you will get the following executable: sudokug -- an interactive interface to Games::Sudoku::General. Unless you are running MSWin32 or VMS (which are special-cased), I will assume you are running some version of U*ix, and behave accordingly. If you do not want this executable installed, rerun this script with the -n qualifier. Checking if your kit is complete... Looks good Writing Makefile for Games::Sudoku::General cp lib/Games/Sudoku/General.pm blib/lib/Games/Sudoku/General.pm cp bin/sudokug blib/script/sudokug /home/cpanrun/ia64-lp64/build/5.8.2/bin/perl "-MExtUtils::MY" -e "MY->fixin(shift)" blib/script/sudokug Manifying blib/man1/sudokug.1 Manifying blib/man3/Games::Sudoku::General.3 PERL_DL_NONLAZY=1 /home/cpanrun/ia64-lp64/build/5.8.2/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib/lib', 'blib/arch')" t/*.t t/basic...........1..2 # Running under perl version 5.008002 for hpux # Current time local: Fri Jun 29 10:20:11 2007 # Current time GMT: Fri Jun 29 17:20:11 2007 # Using Test.pm version 1.24 # # Test 1 - Load Games::Sudoku::General; # Games::Sudoku::General loaded successfully. ok 1 # # Test 2 - Instantiate a Games::Sudoku::General object. ok 2 ok t/pod.............1..0 # Skip Test::Pod 1.00 required to test POD validity. skipped all skipped: Test::Pod 1.00 required to test POD validity. t/pod_coverage....1..0 # Skip Test::Pod::Coverage 1.00 required to test POD coverage. skipped all skipped: Test::Pod::Coverage 1.00 required to test POD coverage. t/sudoku..........1..43 # Running under perl version 5.008002 for hpux # Current time local: Fri Jun 29 10:20:11 2007 # Current time GMT: Fri Jun 29 17:20:11 2007 # Using Test.pm version 1.24 # # Test 1 - Implicit columns # Expect: 9 # Got: 9 ok 1 # # Test 2 - Implicit symbols # Expect: . 1 2 3 4 5 6 7 8 9 # Got: . 1 2 3 4 5 6 7 8 9 ok 2 # # Test 3 - Implicit topology # Expect: # c0,r0,s0 c1,r0,s0 c2,r0,s0 c3,r0,s1 c4,r0,s1 c5,r0,s1 c6,r0,s2 c7,r0,s2 c8,r0,s2 # c0,r1,s0 c1,r1,s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4 c6,r4,s5 c7,r4,s5 c8,r4,s5 # c0,r5,s3 c1,r5,s3 c2,r5,s3 c3,r5,s4 c4,r5,s4 c5,r5,s4 c6,r5,s5 c7,r5,s5 c8,r5,s5 # c0,r6,s6 c1,r6,s6 c2,r6,s6 c3,r6,s7 c4,r6,s7 c5,r6,s7 c6,r6,s8 c7,r6,s8 c8,r6,s8 # c0,r7,s6 c1,r7,s6 c2,r7,s6 c3,r7,s7 c4,r7,s7 c5,r7,s7 c6,r7,s8 c7,r7,s8 c8,r7,s8 # c0,r8,s6 c1,r8,s6 c2,r8,s6 c3,r8,s7 c4,r8,s7 c5,r8,s7 c6,r8,s8 c7,r8,s8 c8,r8,s8 ok 3 # # Test 4 - Unload function # Expect: # . . . 4 . . 7 8 9 # 4 . 6 . . . 1 . . # . 8 . . . . . 5 . # 2 . 4 . . 5 . . . # . 9 5 . . . . . . # . . . 9 . 2 3 4 5 # . 3 . . 7 . 9 . 8 # . 6 7 . . 1 . . . # 9 . . . . 8 . . 2 # Got: # . . . 4 . . 7 8 9 # 4 . 6 . . . 1 . . # . 8 . . . . . 5 . # 2 . 4 . . 5 . . . # . 9 5 . . . . . . # . . . 9 . 2 3 4 5 # . 3 . . 7 . 9 . 8 # . 6 7 . . 1 . . . # 9 . . . . 8 . . 2 ok 4 # # Test 5 - Constraint Taxonomy 1 (F) - Glenn Fowler # http://www.research.att.com/~gsf/sudoku/taxonomy.dat # Expect: # 1 2 3 4 5 6 7 8 9 # 4 5 6 7 8 9 1 2 3 # 7 8 9 1 2 3 4 5 6 # 2 1 4 3 6 5 8 9 7 # 3 9 5 8 4 7 2 6 1 # 6 7 8 9 1 2 3 4 5 # 5 3 2 6 7 4 9 1 8 # 8 6 7 2 9 1 5 3 4 # 9 4 1 5 3 8 6 7 2 # Got: # 1 2 3 4 5 6 7 8 9 # 4 5 6 7 8 9 1 2 3 # 7 8 9 1 2 3 4 5 6 # 2 1 4 3 6 5 8 9 7 # 3 9 5 8 4 7 2 6 1 # 6 7 8 9 1 2 3 4 5 # 5 3 2 6 7 4 9 1 8 # 8 6 7 2 9 1 5 3 4 # 9 4 1 5 3 8 6 7 2 ok 5 # # Test 6 - Check that we in fact used only the "F" constraint # Expect: F # Got: F ok 6 # # Test 7 - Constraint Taxonomy 1 (F) - Glenn Fowler # http://www.research.att.com/~gsf/sudoku/taxonomy.dat # but with letters. # Expect: # A B C D E F G H I # D E F G H I A B C # G H I A B C D E F # B A D C F E H I G # C I E H D G B F A # F G H I A B C D E # E C B F G D I A H # H F G B I A E C D # I D A E C H F G B # Got: # A B C D E F G H I # D E F G H I A B C # G H I A B C D E F # B A D C F E H I G # C I E H D G B F A # F G H I A B C D E # E C B F G D I A H # H F G B I A E C D # I D A E C H F G B ok 7 # # Test 8 - Constraint Taxonomy 2 (FN) - Glenn Fowler # http://www.research.att.com/~gsf/sudoku/taxonomy.dat # Expect: # 1 2 3 4 5 6 7 8 9 # 4 5 6 7 8 9 1 2 3 # 7 8 9 1 2 3 4 5 6 # 2 1 4 3 6 5 8 9 7 # 3 9 5 8 4 7 2 6 1 # 6 7 8 9 1 2 3 4 5 # 5 3 2 6 7 4 9 1 8 # 8 6 7 2 9 1 5 3 4 # 9 4 1 5 3 8 6 7 2 # Got: # 1 2 3 4 5 6 7 8 9 # 4 5 6 7 8 9 1 2 3 # 7 8 9 1 2 3 4 5 6 # 2 1 4 3 6 5 8 9 7 # 3 9 5 8 4 7 2 6 1 # 6 7 8 9 1 2 3 4 5 # 5 3 2 6 7 4 9 1 8 # 8 6 7 2 9 1 5 3 4 # 9 4 1 5 3 8 6 7 2 ok 8 # # Test 9 - Check that we in fact only used the "F" and "N" constraints # Expect: F N # Got: F N ok 9 # # Test 10 - Constraint Taxonomy 3 (FN) - Glenn Fowler # http://www.research.att.com/~gsf/sudoku/taxonomy.dat # Expect: # 1 2 3 4 5 6 7 8 9 # 4 5 6 7 8 9 1 2 3 # 7 8 9 1 2 3 4 5 6 # 2 1 4 3 6 5 8 9 7 # 3 9 5 8 4 7 2 6 1 # 6 7 8 9 1 2 3 4 5 # 5 3 2 6 7 4 9 1 8 # 8 6 7 2 9 1 5 3 4 # 9 4 1 5 3 8 6 7 2 # Got: # 1 2 3 4 5 6 7 8 9 # 4 5 6 7 8 9 1 2 3 # 7 8 9 1 2 3 4 5 6 # 2 1 4 3 6 5 8 9 7 # 3 9 5 8 4 7 2 6 1 # 6 7 8 9 1 2 3 4 5 # 5 3 2 6 7 4 9 1 8 # 8 6 7 2 9 1 5 3 4 # 9 4 1 5 3 8 6 7 2 ok 10 # # Test 11 - Check that we in fact only used the "F" and "N" constraints # Expect: F N # Got: F N ok 11 # # Test 12 - Constraint Taxonomy 4 (FNB) - Glenn Fowler # http://www.research.att.com/~gsf/sudoku/taxonomy.dat # Expect: # 1 2 3 4 5 6 7 8 9 # 4 5 6 7 8 9 1 2 3 # 7 8 9 1 2 3 4 5 6 # 2 1 4 3 6 5 8 9 7 # 3 9 5 8 4 7 2 6 1 # 6 7 8 9 1 2 3 4 5 # 5 3 2 6 7 4 9 1 8 # 8 6 7 2 9 1 5 3 4 # 9 4 1 5 3 8 6 7 2 # Got: # 1 2 3 4 5 6 7 8 9 # 4 5 6 7 8 9 1 2 3 # 7 8 9 1 2 3 4 5 6 # 2 1 4 3 6 5 8 9 7 # 3 9 5 8 4 7 2 6 1 # 6 7 8 9 1 2 3 4 5 # 5 3 2 6 7 4 9 1 8 # 8 6 7 2 9 1 5 3 4 # 9 4 1 5 3 8 6 7 2 ok 12 # # Test 13 - Check that we in fact only used the "F", "N" and "B" constraints # Expect: F N B # Got: F N B ok 13 # # Test 14 - Constraint Taxonomy 5 (FNBT) - Glenn Fowler # http://www.research.att.com/~gsf/sudoku/taxonomy.dat # Expect: # 1 2 3 4 5 6 7 8 9 # 4 5 6 7 8 9 1 2 3 # 7 8 9 1 2 3 4 5 6 # 2 1 4 3 6 5 8 9 7 # 3 9 5 8 4 7 2 6 1 # 6 7 8 9 1 2 3 4 5 # 5 3 2 6 7 4 9 1 8 # 8 6 7 2 9 1 5 3 4 # 9 4 1 5 3 8 6 7 2 # Got: # 1 2 3 4 5 6 7 8 9 # 4 5 6 7 8 9 1 2 3 # 7 8 9 1 2 3 4 5 6 # 2 1 4 3 6 5 8 9 7 # 3 9 5 8 4 7 2 6 1 # 6 7 8 9 1 2 3 4 5 # 5 3 2 6 7 4 9 1 8 # 8 6 7 2 9 1 5 3 4 # 9 4 1 5 3 8 6 7 2 ok 14 # # Test 15 - Check that we in fact only used the "F", "N", "B", and "T" constraints # Expect: F N B T # Got: F N B T ok 15 # # Test 16 - Constraint Taxonomy 6 (FNT) - Glenn Fowler # http://www.research.att.com/~gsf/sudoku/taxonomy.dat # Expect: # 1 2 3 4 5 6 7 8 9 # 4 5 6 7 8 9 1 2 3 # 7 8 9 1 2 3 4 5 6 # 2 1 4 3 6 7 8 9 5 # 5 9 7 2 4 8 3 6 1 # 6 3 8 9 1 5 2 4 7 # 3 6 5 8 7 4 9 1 2 # 8 7 2 6 9 1 5 3 4 # 9 4 1 5 3 2 6 7 8 # Got: # 1 2 3 4 5 6 7 8 9 # 4 5 6 7 8 9 1 2 3 # 7 8 9 1 2 3 4 5 6 # 2 1 4 3 6 7 8 9 5 # 5 9 7 2 4 8 3 6 1 # 6 3 8 9 1 5 2 4 7 # 3 6 5 8 7 4 9 1 2 # 8 7 2 6 9 1 5 3 4 # 9 4 1 5 3 2 6 7 8 ok 16 # # Test 17 - Check that we in fact only used the "F", "N" and "T" constraints # Expect: F N T # Got: F N T ok 17 # # Test 18 - www.websudoku.com puzzle 3_302_280_384 # Expect: # 7 4 5 9 3 2 1 8 6 # 6 1 9 8 4 7 5 2 3 # 3 8 2 5 1 6 9 4 7 # 2 6 4 1 5 9 7 3 8 # 1 9 8 7 2 3 4 6 5 # 5 7 3 6 8 4 2 9 1 # 8 2 7 3 9 1 6 5 4 # 4 3 1 2 6 5 8 7 9 # 9 5 6 4 7 8 3 1 2 # Got: # 7 4 5 9 3 2 1 8 6 # 6 1 9 8 4 7 5 2 3 # 3 8 2 5 1 6 9 4 7 # 2 6 4 1 5 9 7 3 8 # 1 9 8 7 2 3 4 6 5 # 5 7 3 6 8 4 2 9 1 # 8 2 7 3 9 1 6 5 4 # 4 3 1 2 6 5 8 7 9 # 9 5 6 4 7 8 3 1 2 ok 18 # # Test 19 - Check for uniqueness of solution # Expect: # Got: ok 19 # # Test 20 - get # Expect: # e=2,4,6,8 # o=1,3,5,7,9 # Got: # e=2,4,6,8 # o=1,3,5,7,9 ok 20 # # Test 21 - Even/Odd - Ed Pegg Jr. # http://www.maa.org/editorial/mathgames/mathgames_09_05_05.html # Expect: # 1 5 6 9 4 8 7 2 3 # 7 9 4 3 6 2 1 5 8 # 8 2 3 5 7 1 9 6 4 # 2 7 9 1 5 4 8 3 6 # 3 4 8 6 2 9 5 7 1 # 5 6 1 7 8 3 2 4 9 # 4 1 5 8 3 7 6 9 2 # 9 3 7 2 1 6 4 8 5 # 6 8 2 4 9 5 3 1 7 # Got: # 1 5 6 9 4 8 7 2 3 # 7 9 4 3 6 2 1 5 8 # 8 2 3 5 7 1 9 6 4 # 2 7 9 1 5 4 8 3 6 # 3 4 8 6 2 9 5 7 1 # 5 6 1 7 8 3 2 4 9 # 4 1 5 8 3 7 6 9 2 # 9 3 7 2 1 6 4 8 5 # 6 8 2 4 9 5 3 1 7 ok 21 # # Test 22 - get # Expect: # b=5,6,7,8,9 # g=2,4,6,8 # r=1,2,3,4 # y=1,3,5,7,9 # Got: # b=5,6,7,8,9 # g=2,4,6,8 # r=1,2,3,4 # y=1,3,5,7,9 ok 22 # # Test 23 - Colors - Ed Pegg Jr. # http://www.maa.org/editorial/mathgames/mathgames_09_05_05.html # Expect: # 4 3 9 7 6 2 5 8 1 # 8 5 1 4 3 9 6 7 2 # 7 2 6 1 5 8 9 4 3 # 9 6 3 8 4 1 2 5 7 # 2 1 4 9 7 5 8 3 6 # 5 8 7 3 2 6 1 9 4 # 3 9 5 6 1 7 4 2 8 # 6 4 2 5 8 3 7 1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 7 2 8 9 1 # 8 1 7 6 2 4 9 3 5 # 9 2 4 5 3 7 1 8 6 # 5 6 3 9 1 8 7 2 4 # 3 4 6 7 8 1 2 5 9 # 7 5 9 2 4 6 3 1 8 # 1 8 2 3 5 9 6 4 7 # Got: # 4 7 8 1 9 3 5 6 2 # 2 9 1 8 6 5 4 7 3 # 6 3 5 4 7 2 8 9 1 # 8 1 7 6 2 4 9 3 5 # 9 2 4 5 3 7 1 8 6 # 5 6 3 9 1 8 7 2 4 # 3 4 6 7 8 1 2 5 9 # 7 5 9 2 4 6 3 1 8 # 1 8 2 3 5 9 6 4 7 ok 27 # # Test 28 - "Magic Sudoku" - Alexandre Owen Muniz # cited by Ed Pegg, Jr. # http://www.maa.org/editorial/mathgames/mathgames_09_05_05.html # Expect: # 8 4 3 2 7 5 9 6 1 # 5 7 9 6 8 1 3 2 4 # 2 1 6 4 3 9 7 8 5 # 7 6 5 3 1 8 4 9 2 # 4 9 1 7 5 2 6 3 8 # 3 2 8 9 6 4 1 5 7 # 1 8 4 5 9 6 2 7 3 # 9 3 2 8 4 7 5 1 6 # 6 5 7 1 2 3 8 4 9 # Got: # 8 4 3 2 7 5 9 6 1 # 5 7 9 6 8 1 3 2 4 # 2 1 6 4 3 9 7 8 5 # 7 6 5 3 1 8 4 9 2 # 4 9 1 7 5 2 6 3 8 # 3 2 8 9 6 4 1 5 7 # 1 8 4 5 9 6 2 7 3 # 9 3 2 8 4 7 5 1 6 # 6 5 7 1 2 3 8 4 9 ok 28 # # Test 29 - Arbitrary nonomino - Ed Pegg Jr. # http://www.maa.org/editorial/mathgames/mathgames_09_05_05.html # Expect: # 3 1 2 8 6 5 4 9 7 # 5 9 7 6 1 3 2 8 4 # 4 2 5 7 9 1 3 6 8 # 9 6 8 3 7 2 1 4 5 # 1 4 3 9 5 6 8 7 2 # 8 3 9 1 2 4 7 5 6 # 2 5 6 4 8 7 9 1 3 # 6 7 1 2 4 8 5 3 9 # 7 8 4 5 3 9 6 2 1 # Got: # 3 1 2 8 6 5 4 9 7 # 5 9 7 6 1 3 2 8 4 # 4 2 5 7 9 1 3 6 8 # 9 6 8 3 7 2 1 4 5 # 1 4 3 9 5 6 8 7 2 # 8 3 9 1 2 4 7 5 6 # 2 5 6 4 8 7 9 1 3 # 6 7 1 2 4 8 5 3 9 # 7 8 4 5 3 9 6 2 1 ok 29 # # Test 30 - Brick topology (3 x 2 bricks in a 6 x 6 square) # Expect: # c0,r0,s0 c1,r0,s0 c2,r0,s0 c3,r0,s1 c4,r0,s1 c5,r0,s1 # c0,r1,s0 c1,r1,s0 c2,r1,s0 c3,r1,s1 c4,r1,s1 c5,r1,s1 # c0,r2,s2 c1,r2,s2 c2,r2,s2 c3,r2,s3 c4,r2,s3 c5,r2,s3 # c0,r3,s2 c1,r3,s2 c2,r3,s2 c3,r3,s3 c4,r3,s3 c5,r3,s3 # c0,r4,s4 c1,r4,s4 c2,r4,s4 c3,r4,s5 c4,r4,s5 c5,r4,s5 # c0,r5,s4 c1,r5,s4 c2,r5,s4 c3,r5,s5 c4,r5,s5 c5,r5,s5 # Got: # c0,r0,s0 c1,r0,s0 c2,r0,s0 c3,r0,s1 c4,r0,s1 c5,r0,s1 # c0,r1,s0 c1,r1,s0 c2,r1,s0 c3,r1,s1 c4,r1,s1 c5,r1,s1 # c0,r2,s2 c1,r2,s2 c2,r2,s2 c3,r2,s3 c4,r2,s3 c5,r2,s3 # c0,r3,s2 c1,r3,s2 c2,r3,s2 c3,r3,s3 c4,r3,s3 c5,r3,s3 # c0,r4,s4 c1,r4,s4 c2,r4,s4 c3,r4,s5 c4,r4,s5 c5,r4,s5 # c0,r5,s4 c1,r5,s4 c2,r5,s4 c3,r5,s5 c4,r5,s5 c5,r5,s5 ok 30 # # Test 31 - Symbols generated by above "set brick" # Expect: . 1 2 3 4 5 6 # Got: . 1 2 3 4 5 6 ok 31 # # Test 32 - Column setting generated by above "set brick" # Expect: 6 # Got: 6 ok 32 # # Test 33 - Digit Place - Cihan Altay # cited by Ed Pegg, Jr. # http://www.maa.org/editorial/mathgames/mathgames_09_05_05.html # Expect: # 3 4 5 1 6 2 # 6 2 1 4 3 5 # 4 5 2 6 1 3 # 1 6 3 2 5 4 # 5 1 4 3 2 6 # 2 3 6 5 4 1 # Got: # 3 4 5 1 6 2 # 6 2 1 4 3 5 # 4 5 2 6 1 3 # 1 6 3 2 5 4 # 5 1 4 3 2 6 # 2 3 6 5 4 1 ok 33 # # Test 34 - Cubic Sudoku (half, or isometric) # cited by Ed Pegg, Jr. # http://www.maa.org/editorial/mathgames/mathgames_09_05_05.html # Expect: # 3 5 7 4 # 1 6 8 2 # 2 4 1 6 # 8 7 5 3 # # 5 8 3 1 # 4 2 6 7 # 7 1 2 8 # 6 3 4 5 # # 6 7 4 2 # 1 5 3 8 # 4 3 5 6 # 2 8 7 1 # Got: # 3 5 7 4 # 1 6 8 2 # 2 4 1 6 # 8 7 5 3 # # 5 8 3 1 # 4 2 6 7 # 7 1 2 8 # 6 3 4 5 # # 6 7 4 2 # 1 5 3 8 # 4 3 5 6 # 2 8 7 1 ok 34 # # Test 35 - Cubic Sudoku (full) # http://www.mathrec.org/sudoku/sudokucube.gif # Expect: # D 2 C 7 # 3 8 0 9 # 6 4 A 1 # B 5 E F # # F C 5 3 # A 4 B 6 # 9 2 E 8 # 1 D 0 7 # # 1 D B A # 2 C 9 8 # 0 3 7 4 # F E 6 5 # # 2 9 E 4 # 1 3 7 0 # D F 5 6 # A C B 8 # # 9 0 4 C # 8 7 2 D # A 1 F 6 # E B 5 3 # # 4 9 3 2 # C A 1 B # 5 F D E # 7 6 8 0 # Got: # D 2 C 7 # 3 8 0 9 # 6 4 A 1 # B 5 E F # # F C 5 3 # A 4 B 6 # 9 2 E 8 # 1 D 0 7 # # 1 D B A # 2 C 9 8 # 0 3 7 4 # F E 6 5 # # 2 9 E 4 # 1 3 7 0 # D F 5 6 # A C B 8 # # 9 0 4 C # 8 7 2 D # A 1 F 6 # E B 5 3 # # 4 9 3 2 # C A 1 B # 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s6 c12,r6,s7 c13,r6,s7 c14,r6,s7 c15,r6,s7 # c0,r7,s4 c1,r7,s4 c2,r7,s4 c3,r7,s4 c4,r7,s5 c5,r7,s5 c6,r7,s5 c7,r7,s5 c8,r7,s6 c9,r7,s6 c10,r7,s6 c11,r7,s6 c12,r7,s7 c13,r7,s7 c14,r7,s7 c15,r7,s7 # c0,r8,s8 c1,r8,s8 c2,r8,s8 c3,r8,s8 c4,r8,s9 c5,r8,s9 c6,r8,s9 c7,r8,s9 c8,r8,s10 c9,r8,s10 c10,r8,s10 c11,r8,s10 c12,r8,s11 c13,r8,s11 c14,r8,s11 c15,r8,s11 # c0,r9,s8 c1,r9,s8 c2,r9,s8 c3,r9,s8 c4,r9,s9 c5,r9,s9 c6,r9,s9 c7,r9,s9 c8,r9,s10 c9,r9,s10 c10,r9,s10 c11,r9,s10 c12,r9,s11 c13,r9,s11 c14,r9,s11 c15,r9,s11 # c0,r10,s8 c1,r10,s8 c2,r10,s8 c3,r10,s8 c4,r10,s9 c5,r10,s9 c6,r10,s9 c7,r10,s9 c8,r10,s10 c9,r10,s10 c10,r10,s10 c11,r10,s10 c12,r10,s11 c13,r10,s11 c14,r10,s11 c15,r10,s11 # c0,r11,s8 c1,r11,s8 c2,r11,s8 c3,r11,s8 c4,r11,s9 c5,r11,s9 c6,r11,s9 c7,r11,s9 c8,r11,s10 c9,r11,s10 c10,r11,s10 c11,r11,s10 c12,r11,s11 c13,r11,s11 c14,r11,s11 c15,r11,s11 # c0,r12,s12 c1,r12,s12 c2,r12,s12 c3,r12,s12 c4,r12,s13 c5,r12,s13 c6,r12,s13 c7,r12,s13 c8,r12,s14 c9,r12,s14 c10,r12,s14 c11,r12,s14 c12,r12,s15 c13,r12,s15 c14,r12,s15 c15,r12,s15 # c0,r13,s12 c1,r13,s12 c2,r13,s12 c3,r13,s12 c4,r13,s13 c5,r13,s13 c6,r13,s13 c7,r13,s13 c8,r13,s14 c9,r13,s14 c10,r13,s14 c11,r13,s14 c12,r13,s15 c13,r13,s15 c14,r13,s15 c15,r13,s15 # c0,r14,s12 c1,r14,s12 c2,r14,s12 c3,r14,s12 c4,r14,s13 c5,r14,s13 c6,r14,s13 c7,r14,s13 c8,r14,s14 c9,r14,s14 c10,r14,s14 c11,r14,s14 c12,r14,s15 c13,r14,s15 c14,r14,s15 c15,r14,s15 # c0,r15,s12 c1,r15,s12 c2,r15,s12 c3,r15,s12 c4,r15,s13 c5,r15,s13 c6,r15,s13 c7,r15,s13 c8,r15,s14 c9,r15,s14 c10,r15,s14 c11,r15,s14 c12,r15,s15 c13,r15,s15 c14,r15,s15 c15,r15,s15 # Got: # c0,r0,s0 c1,r0,s0 c2,r0,s0 c3,r0,s0 c4,r0,s1 c5,r0,s1 c6,r0,s1 c7,r0,s1 c8,r0,s2 c9,r0,s2 c10,r0,s2 c11,r0,s2 c12,r0,s3 c13,r0,s3 c14,r0,s3 c15,r0,s3 # c0,r1,s0 c1,r1,s0 c2,r1,s0 c3,r1,s0 c4,r1,s1 c5,r1,s1 c6,r1,s1 c7,r1,s1 c8,r1,s2 c9,r1,s2 c10,r1,s2 c11,r1,s2 c12,r1,s3 c13,r1,s3 c14,r1,s3 c15,r1,s3 # c0,r2,s0 c1,r2,s0 c2,r2,s0 c3,r2,s0 c4,r2,s1 c5,r2,s1 c6,r2,s1 c7,r2,s1 c8,r2,s2 c9,r2,s2 c10,r2,s2 c11,r2,s2 c12,r2,s3 c13,r2,s3 c14,r2,s3 c15,r2,s3 # c0,r3,s0 c1,r3,s0 c2,r3,s0 c3,r3,s0 c4,r3,s1 c5,r3,s1 c6,r3,s1 c7,r3,s1 c8,r3,s2 c9,r3,s2 c10,r3,s2 c11,r3,s2 c12,r3,s3 c13,r3,s3 c14,r3,s3 c15,r3,s3 # c0,r4,s4 c1,r4,s4 c2,r4,s4 c3,r4,s4 c4,r4,s5 c5,r4,s5 c6,r4,s5 c7,r4,s5 c8,r4,s6 c9,r4,s6 c10,r4,s6 c11,r4,s6 c12,r4,s7 c13,r4,s7 c14,r4,s7 c15,r4,s7 # c0,r5,s4 c1,r5,s4 c2,r5,s4 c3,r5,s4 c4,r5,s5 c5,r5,s5 c6,r5,s5 c7,r5,s5 c8,r5,s6 c9,r5,s6 c10,r5,s6 c11,r5,s6 c12,r5,s7 c13,r5,s7 c14,r5,s7 c15,r5,s7 # c0,r6,s4 c1,r6,s4 c2,r6,s4 c3,r6,s4 c4,r6,s5 c5,r6,s5 c6,r6,s5 c7,r6,s5 c8,r6,s6 c9,r6,s6 c10,r6,s6 c11,r6,s6 c12,r6,s7 c13,r6,s7 c14,r6,s7 c15,r6,s7 # c0,r7,s4 c1,r7,s4 c2,r7,s4 c3,r7,s4 c4,r7,s5 c5,r7,s5 c6,r7,s5 c7,r7,s5 c8,r7,s6 c9,r7,s6 c10,r7,s6 c11,r7,s6 c12,r7,s7 c13,r7,s7 c14,r7,s7 c15,r7,s7 # c0,r8,s8 c1,r8,s8 c2,r8,s8 c3,r8,s8 c4,r8,s9 c5,r8,s9 c6,r8,s9 c7,r8,s9 c8,r8,s10 c9,r8,s10 c10,r8,s10 c11,r8,s10 c12,r8,s11 c13,r8,s11 c14,r8,s11 c15,r8,s11 # c0,r9,s8 c1,r9,s8 c2,r9,s8 c3,r9,s8 c4,r9,s9 c5,r9,s9 c6,r9,s9 c7,r9,s9 c8,r9,s10 c9,r9,s10 c10,r9,s10 c11,r9,s10 c12,r9,s11 c13,r9,s11 c14,r9,s11 c15,r9,s11 # c0,r10,s8 c1,r10,s8 c2,r10,s8 c3,r10,s8 c4,r10,s9 c5,r10,s9 c6,r10,s9 c7,r10,s9 c8,r10,s10 c9,r10,s10 c10,r10,s10 c11,r10,s10 c12,r10,s11 c13,r10,s11 c14,r10,s11 c15,r10,s11 # c0,r11,s8 c1,r11,s8 c2,r11,s8 c3,r11,s8 c4,r11,s9 c5,r11,s9 c6,r11,s9 c7,r11,s9 c8,r11,s10 c9,r11,s10 c10,r11,s10 c11,r11,s10 c12,r11,s11 c13,r11,s11 c14,r11,s11 c15,r11,s11 # c0,r12,s12 c1,r12,s12 c2,r12,s12 c3,r12,s12 c4,r12,s13 c5,r12,s13 c6,r12,s13 c7,r12,s13 c8,r12,s14 c9,r12,s14 c10,r12,s14 c11,r12,s14 c12,r12,s15 c13,r12,s15 c14,r12,s15 c15,r12,s15 # c0,r13,s12 c1,r13,s12 c2,r13,s12 c3,r13,s12 c4,r13,s13 c5,r13,s13 c6,r13,s13 c7,r13,s13 c8,r13,s14 c9,r13,s14 c10,r13,s14 c11,r13,s14 c12,r13,s15 c13,r13,s15 c14,r13,s15 c15,r13,s15 # c0,r14,s12 c1,r14,s12 c2,r14,s12 c3,r14,s12 c4,r14,s13 c5,r14,s13 c6,r14,s13 c7,r14,s13 c8,r14,s14 c9,r14,s14 c10,r14,s14 c11,r14,s14 c12,r14,s15 c13,r14,s15 c14,r14,s15 c15,r14,s15 # c0,r15,s12 c1,r15,s12 c2,r15,s12 c3,r15,s12 c4,r15,s13 c5,r15,s13 c6,r15,s13 c7,r15,s13 c8,r15,s14 c9,r15,s14 c10,r15,s14 c11,r15,s14 c12,r15,s15 c13,r15,s15 c14,r15,s15 c15,r15,s15 ok 36 # # Test 37 - Symbols for 4 x 4 Sudoku # Expect: . 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 # Got: . 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ok 37 # # Test 38 - Columns for 4 x 4 Sudoku # Expect: 16 # Got: 16 ok 38 # # Test 39 - Latin square columns # Expect: 4 # Got: 4 ok 39 # # Test 40 - Latin square symbols # Expect: . A B C D # Got: . A B C D ok 40 # # Test 41 - Latin square topology # Expect: # c0,r0 c1,r0 c2,r0 c3,r0 # c0,r1 c1,r1 c2,r1 c3,r1 # c0,r2 c1,r2 c2,r2 c3,r2 # c0,r3 c1,r3 c2,r3 c3,r3 # Got: # c0,r0 c1,r0 c2,r0 c3,r0 # c0,r1 c1,r1 c2,r1 c3,r1 # c0,r2 c1,r2 c2,r2 c3,r2 # c0,r3 c1,r3 c2,r3 c3,r3 ok 41 # # Test 42 - Arbitrary Nonomino, letters # http://www.bumblebeagle.org/dusumoh/ # Expect: # F D E C I B G A H # E C G D H A B I F # D I B E A F H G C # B G A H E C I F D # G A C I B H F D E # I B H A F D C E G # A H I F D G E C B # H F D G C E A B I # C E F B G I D H A # Got: # F D E C I B G A H # E C G D H A B I F # D I B E A F H G C # B G A H E C I F D # G A C I B H F D E # I B H A F D C E G # A H I F D G E C B # H F D G C E A B I # C E F B G I D H A ok 42 # # Test 43 - Corresponding-cell topology # David Jelinek of Central Michigan University # Expect: # c0,r0,s0,u0 c1,r0,s0,u1 c2,r0,s0,u2 c3,r0,s1,u0 c4,r0,s1,u1 c5,r0,s1,u2 c6,r0,s2,u0 c7,r0,s2,u1 c8,r0,s2,u2 # c0,r1,s0,u3 c1,r1,s0,u4 c2,r1,s0,u5 c3,r1,s1,u3 c4,r1,s1,u4 c5,r1,s1,u5 c6,r1,s2,u3 c7,r1,s2,u4 c8,r1,s2,u5 # c0,r2,s0,u6 c1,r2,s0,u7 c2,r2,s0,u8 c3,r2,s1,u6 c4,r2,s1,u7 c5,r2,s1,u8 c6,r2,s2,u6 c7,r2,s2,u7 c8,r2,s2,u8 # c0,r3,s3,u0 c1,r3,s3,u1 c2,r3,s3,u2 c3,r3,s4,u0 c4,r3,s4,u1 c5,r3,s4,u2 c6,r3,s5,u0 c7,r3,s5,u1 c8,r3,s5,u2 # c0,r4,s3,u3 c1,r4,s3,u4 c2,r4,s3,u5 c3,r4,s4,u3 c4,r4,s4,u4 c5,r4,s4,u5 c6,r4,s5,u3 c7,r4,s5,u4 c8,r4,s5,u5 # c0,r5,s3,u6 c1,r5,s3,u7 c2,r5,s3,u8 c3,r5,s4,u6 c4,r5,s4,u7 c5,r5,s4,u8 c6,r5,s5,u6 c7,r5,s5,u7 c8,r5,s5,u8 # c0,r6,s6,u0 c1,r6,s6,u1 c2,r6,s6,u2 c3,r6,s7,u0 c4,r6,s7,u1 c5,r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8,u2 # c0,r7,s6,u3 c1,r7,s6,u4 c2,r7,s6,u5 c3,r7,s7,u3 c4,r7,s7,u4 c5,r7,s7,u5 c6,r7,s8,u3 c7,r7,s8,u4 c8,r7,s8,u5 # c0,r8,s6,u6 c1,r8,s6,u7 c2,r8,s6,u8 c3,r8,s7,u6 c4,r8,s7,u7 c5,r8,s7,u8 c6,r8,s8,u6 c7,r8,s8,u7 c8,r8,s8,u8 ok 43 ok All tests successful, 2 tests skipped. Files=4, Tests=45, 5 wallclock secs ( 5.37 cusr + 0.15 csys = 5.52 CPU) Installing /home/cpanrun/ia64-lp64/build/5.8.2/lib/site_perl/5.8.2/Games/Sudoku/General.pm Installing /home/cpanrun/ia64-lp64/build/5.8.2/man/man1/sudokug.1 Installing /home/cpanrun/ia64-lp64/build/5.8.2/man/man3/Games::Sudoku::General.3 Installing /home/cpanrun/ia64-lp64/build/5.8.2/bin/sudokug Appending installation info to /home/cpanrun/ia64-lp64/build/5.8.2/lib/5.8.2/IA64.ARCHREV_0-thread-multi-LP64/perllocal.pod