Skip to content

Commit 60f7527

Browse files
committed
Added expected results
1 parent 297495a commit 60f7527

7 files changed

+7
-9
lines changed

2017/01-Inverse Captcha.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
test = 'real'
1717
input_file = os.path.join(os.path.dirname(__file__), 'Inputs', os.path.basename(__file__).replace('.py', '.txt'))
1818
test_data[test] = {"input": open(input_file, "r+").read().strip(),
19-
"expected": ['Unknown', 'Unknown'],
19+
"expected": ['1069', '1268'],
2020
}
2121

2222
# -------------------------------- Control program execution -------------------------------- #

2017/02-Corruption Checksum.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
test = 'real'
2121
input_file = os.path.join(os.path.dirname(__file__), 'Inputs', os.path.basename(__file__).replace('.py', '.txt'))
2222
test_data[test] = {"input": open(input_file, "r+").read().strip(),
23-
"expected": ['Unknown', 'Unknown'],
23+
"expected": ['46402', '265'],
2424
}
2525

2626
# -------------------------------- Control program execution -------------------------------- #

2017/12-Digital Plumber.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
test = 'real'
2323
input_file = os.path.join(os.path.dirname(__file__), 'Inputs', os.path.basename(__file__).replace('.py', '.txt'))
2424
test_data[test] = {"input": open(input_file, "r+").read().strip(),
25-
"expected": ['378', 'Unknown'],
25+
"expected": ['378', '204'],
2626
}
2727

2828
# -------------------------------- Control program execution -------------------------------- #

2017/15-Dueling Generators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
test = 'real'
1313
input_file = os.path.join(os.path.dirname(__file__), 'Inputs', os.path.basename(__file__).replace('.py', '.txt'))
1414
test_data[test] = {"input": open(input_file, "r+").read().strip(),
15-
"expected": ['597', 'Unknown'],
15+
"expected": ['597', '303'],
1616
}
1717

1818
# -------------------------------- Control program execution -------------------------------- #

2017/16-Permutation Promenade.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
test = 'real'
1212
input_file = os.path.join(os.path.dirname(__file__), 'Inputs', os.path.basename(__file__).replace('.py', '.txt'))
1313
test_data[test] = {"input": ('abcdefghijklmnop', open(input_file, "r+").read().strip()),
14-
"expected": ['ceijbfoamgkdnlph', 'Unknown'],
14+
"expected": ['ceijbfoamgkdnlph', 'pnhajoekigcbflmd'],
1515
}
1616

1717
# -------------------------------- Control program execution -------------------------------- #

2017/18-Duet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
test = 'real'
3131
input_file = os.path.join(os.path.dirname(__file__), 'Inputs', os.path.basename(__file__).replace('.py', '.txt'))
3232
test_data[test] = {"input": open(input_file, "r+").read().strip(),
33-
"expected": ['7071', 'Unknown'],
33+
"expected": ['7071', '8001'],
3434
}
3535

3636
# -------------------------------- Control program execution -------------------------------- #

2017/20-Particle Swarm.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
test = 'real'
2121
input_file = os.path.join(os.path.dirname(__file__), 'Inputs', os.path.basename(__file__).replace('.py', '.txt'))
2222
test_data[test] = {"input": open(input_file, "r+").read().strip(),
23-
"expected": ['Unknown', 'Unknown'],
23+
"expected": ['125', '461'],
2424
}
2525

2626
# -------------------------------- Control program execution -------------------------------- #
@@ -92,8 +92,6 @@
9292
elif i % 10 == 0:
9393
saved_len = len(particles)
9494

95-
print(i, len(particles))
96-
9795
puzzle_actual_result = len(particles)
9896

9997

0 commit comments

Comments
 (0)