Skip to content

Commit

Permalink
more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
tbali0524 committed Dec 8, 2024
1 parent 3a2350c commit 87d1cfa
Show file tree
Hide file tree
Showing 132 changed files with 2,194 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .cgtest.full.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@
'easy_com_blowing-fuse',
'easy_com_bob-the-ascii-teacher', // removed puzzle
'easy_com_body-weight-is-a-girls-secret',
'easy_com_bouncing-simulator',
'easy_com_brackets-extreme-ed',
'easy_com_brick-in-the-wall',
'easy_com_build-a-bookcase',
Expand Down Expand Up @@ -337,6 +338,7 @@
'easy_com_is-the-king-in-check-part-1',
'easy_com_isbn-check-digit',
'easy_com_island-escape',
'easy_com_item-maker',
'easy_com_jack-silver-the-casino',
'easy_com_kangaroo-words',
'easy_com_kiss-the-girls',
Expand Down Expand Up @@ -374,6 +376,7 @@
'easy_com_next-growing-number',
'easy_com_nicholas-breakspeare-and-hugh-of-evesham',
'easy_com_no-more-pythons-please',
'easy_com_non-triple-numbers',
'easy_com_number-derivation',
'easy_com_number-formatting',
'easy_com_number-of-digits',
Expand All @@ -383,6 +386,7 @@
'easy_com_offset-arrays',
'easy_com_order-of-succession',
'easy_com_organic-compounds',
'easy_com_pachinko-jackpot',
'easy_com_panel-count',
'easy_com_park-pilot',
'easy_com_parse-sql-queries',
Expand All @@ -409,6 +413,7 @@
'easy_com_rooks-movements',
'easy_com_rotating-arrows',
'easy_com_rugby-score',
'easy_com_sand-fall',
'easy_com_saving-snoopy',
'easy_com_score-a-bridge-deal',
'easy_com_scrabble-score',
Expand Down Expand Up @@ -659,6 +664,7 @@
'medium_com_level-of-nested-parentheses',
'medium_com_lexiscramble-quest',
'medium_com_light-bulbs',
'medium_com_literary-alfabet-soupe',
'medium_com_locked-in-gear',
'medium_com_longest-increasing-subsequence',
'medium_com_lost-astronaut',
Expand Down Expand Up @@ -849,6 +855,7 @@
'hard_com_expand-the-polynomial',
'hard_com_factorials-of-primes-decomposition',
'hard_com_flower-beds',
'hard_com_fold-and-cut',
'hard_com_fractal-carpet',
'hard_com_gerrymandering',
'hard_com_google-interview---the-two-egg-problem',
Expand Down Expand Up @@ -1113,4 +1120,4 @@
],
],
];
// Note: last puzzle added on 24.11.06: 'easy_com_playing-card-odds',
// Note: last puzzle added on 24.12.08: 'hard_com_fold-and-cut',
5 changes: 5 additions & 0 deletions .tests/expected/easy_com_bouncing-simulator_e01.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#########
#1 1 #
# 1 1 #
# 1 #
#########
8 changes: 8 additions & 0 deletions .tests/expected/easy_com_bouncing-simulator_e02.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
######
#1 #
# 1 #
# 1 #
# 1#
#1 1 #
# 1 #
######
5 changes: 5 additions & 0 deletions .tests/expected/easy_com_bouncing-simulator_e03.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
######
#1 1 #
# 2 1#
#1 1 #
######
9 changes: 9 additions & 0 deletions .tests/expected/easy_com_bouncing-simulator_e04.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
############
#1 1 #
# 1 1 1 #
# 1 1 1 #
# 2 1#
# 1 1 1 #
# 1 1 1 #
#1 1 #
############
27 changes: 27 additions & 0 deletions .tests/expected/easy_com_bouncing-simulator_e05.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
################################
#1 1 1 1 1 1 1 1 1 1 1 1 #
# 2 1 1 1 2 2 1 1 2 2 2 1 1 2 1#
#1 1 2 1 1 2 1 2 1 2 2 1 2 1 2 #
# 1 2 2 1 1 1 2 2 1 2 1 2 2 1 1#
# 2 2 2 1 2 2 2 1 1 2 2 2 1 #
# 1 2 2 2 1 2 2 2 2 2 2 2 #
#1 1 2 2 1 1 1 2 2 1 1 2 2 2 1 #
# 2 1 2 1 2 1 1 2 1 2 1 2 2 1 1#
#1 2 1 1 2 2 1 1 1 2 2 1 2 1 2 #
# 2 2 2 2 2 1 2 2 2 1 1 2 1#
#1 2 1 1 2 2 2 1 2 2 2 2 2 #
# 2 1 2 1 2 2 1 1 1 2 2 1 1 2 1#
#1 1 2 2 1 2 1 2 1 1 2 1 2 1 2 #
# 1 2 2 2 1 1 2 2 1 1 1 2 2 1 1#
# 2 2 2 2 2 2 2 1 2 2 2 1 #
# 1 2 2 2 1 1 2 2 2 1 2 2 2 #
#1 1 2 2 1 2 1 2 2 1 1 1 2 2 1 #
# 2 1 2 1 2 2 1 2 1 2 1 1 2 1 1#
#1 2 1 1 2 2 2 1 1 2 2 1 1 1 2 #
# 2 2 2 2 2 2 2 2 2 1 2 1#
#1 2 1 1 2 2 2 1 1 2 2 2 1 2 #
# 2 1 2 1 2 2 1 2 1 2 2 1 1 1 1#
#1 1 2 2 1 2 1 2 2 1 2 1 2 1 1 #
# 1 2 2 2 1 1 2 2 2 1 1 2 2 1 #
# 1 1 1 1 1 1 1 1 1 1 1 #
################################
9 changes: 9 additions & 0 deletions .tests/expected/easy_com_bouncing-simulator_e06.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
########################
#1 2 1 1 #
# 1 2 2 1 1 1 1 #
# 1 2 2 1 1 1 1 #
# 3 3 2 1#
# 2 1 1 2 1 1 1 #
# 2 1 1 2 1 1 1 #
#1 1 2 1 #
########################
13 changes: 13 additions & 0 deletions .tests/expected/easy_com_bouncing-simulator_e07.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
###########################
#2 4 3 3 3 3 2#
# 3 3 4 3 3 3 3 3 3 3 3 4 #
# 6 7 6 6 6 7 #
# 3 3 3 4 3 3 3 3 3 3 4 3 #
#3 6 7 6 6 7 3#
# 3 3 3 3 4 3 3 3 3 4 3 3 #
# 6 6 7 6 7 6 #
# 3 3 3 3 3 4 3 3 4 3 3 3 #
#3 6 6 7 7 6 3#
# 3 3 3 3 3 3 4 4 3 3 3 3 #
# 3 3 3 4 3 3 #
###########################
5 changes: 5 additions & 0 deletions .tests/expected/easy_com_bouncing-simulator_e08.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#####
#3 #
# 4 #
# 2#
#####
11 changes: 11 additions & 0 deletions .tests/expected/easy_com_bouncing-simulator_e09.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
###
#1#
#1#
#1#
# #
# #
# #
# #
# #
# #
###
3 changes: 3 additions & 0 deletions .tests/expected/easy_com_bouncing-simulator_e10.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#############
#11111112221#
#############
5 changes: 5 additions & 0 deletions .tests/expected/easy_com_item-maker_e01.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
##################
# -Wooden Sword- #
# Common #
# Damage 20 #
##################
7 changes: 7 additions & 0 deletions .tests/expected/easy_com_item-maker_e02.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/###################\
# -Iron Pickaxe- #
# Rare #
# Speed 5 #
# Damage 5 #
# Crit. Chance 1.2% #
\###################/
7 changes: 7 additions & 0 deletions .tests/expected/easy_com_item-maker_e03.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/----------------------\
| -Draconic Sword- |
| Epic |
| Skill Dragon Cry |
| Damage 100 |
| Critical Damage 150% |
\______________________/
10 changes: 10 additions & 0 deletions .tests/expected/easy_com_item-maker_e04.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
X----------\_/----------X
[ -Sword of Everything- ]
| Legendary |
| Skill Annihilation |
| Skill Creation |
| Damage 500 |
| Critical Chance 3.5% |
| Critical Damage 300% |
| Speed 2 |
X_______________________X
9 changes: 9 additions & 0 deletions .tests/expected/easy_com_item-maker_e05.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
X---------\__/---------X
[ -Elucidator- ]
| Legendary |
| Skill Dual Blades |
| Damage 150 |
| Speed 15 |
| Critical Chance 5.1% |
| Critical Damage 450% |
X______________________X
1 change: 1 addition & 0 deletions .tests/expected/easy_com_non-triple-numbers_e01.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
36
1 change: 1 addition & 0 deletions .tests/expected/easy_com_non-triple-numbers_e02.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
402
1 change: 1 addition & 0 deletions .tests/expected/easy_com_non-triple-numbers_e03.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4946
1 change: 1 addition & 0 deletions .tests/expected/easy_com_non-triple-numbers_e04.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
349526
1 change: 1 addition & 0 deletions .tests/expected/easy_com_non-triple-numbers_e05.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
210066
1 change: 1 addition & 0 deletions .tests/expected/easy_com_non-triple-numbers_e06.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1198372
1 change: 1 addition & 0 deletions .tests/expected/easy_com_non-triple-numbers_e07.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
6890642
1 change: 1 addition & 0 deletions .tests/expected/easy_com_non-triple-numbers_e08.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
227978642
1 change: 1 addition & 0 deletions .tests/expected/easy_com_non-triple-numbers_e09.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
380810386
1 change: 1 addition & 0 deletions .tests/expected/easy_com_non-triple-numbers_e10.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1227133513
1 change: 1 addition & 0 deletions .tests/expected/easy_com_pachinko-jackpot_e01.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4900
1 change: 1 addition & 0 deletions .tests/expected/easy_com_pachinko-jackpot_e02.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
100
1 change: 1 addition & 0 deletions .tests/expected/easy_com_pachinko-jackpot_e03.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
900
1 change: 1 addition & 0 deletions .tests/expected/easy_com_pachinko-jackpot_e04.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1500
1 change: 1 addition & 0 deletions .tests/expected/easy_com_pachinko-jackpot_e05.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
9300
1 change: 1 addition & 0 deletions .tests/expected/easy_com_pachinko-jackpot_e06.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1980
1 change: 1 addition & 0 deletions .tests/expected/easy_com_pachinko-jackpot_e07.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
30420
1 change: 1 addition & 0 deletions .tests/expected/easy_com_pachinko-jackpot_e08.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
256203
1 change: 1 addition & 0 deletions .tests/expected/easy_com_pachinko-jackpot_e09.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
256447
1 change: 1 addition & 0 deletions .tests/expected/easy_com_pachinko-jackpot_e10.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
17199
1 change: 1 addition & 0 deletions .tests/expected/easy_com_pachinko-jackpot_e11.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12383
4 changes: 4 additions & 0 deletions .tests/expected/easy_com_sand-fall_e01.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
| |
| A |
|one|
+---+
5 changes: 5 additions & 0 deletions .tests/expected/easy_com_sand-fall_e02.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
| |
|I |
|lov |
|SAND|
+----+
7 changes: 7 additions & 0 deletions .tests/expected/easy_com_sand-fall_e03.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
| |
| |
| G |
| Ggg |
| GGggG |
|GGGgggg|
+-------+
3 changes: 3 additions & 0 deletions .tests/expected/easy_com_sand-fall_e04.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
|Ju|
|ST|
+--+
6 changes: 6 additions & 0 deletions .tests/expected/easy_com_sand-fall_e05.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
| III |
| cc IIIII |
| CC cccc IIIIIII |
| N aaa CCCC cccccc IIIIIIIII|
|F i BB ooo NNNN aaaaa CCCCCCC ccccccccc IIIIIIIIII|
+--------------------------------------------------+
10 changes: 10 additions & 0 deletions .tests/expected/easy_com_sand-fall_e06.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
| A |
| AAA |
| AAAAA |
| AvvvvvA |
| AAAvvvAAA |
|AAAAAvAAAAA|
|pmmmmmmmmmq|
|HxxZELDAxxH|
|bwwwwwwwwwd|
+-----------+
9 changes: 9 additions & 0 deletions .tests/expected/easy_com_sand-fall_e07.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
|robqkbnr|
|ppppoppp|
|zonozozo|
|ozozpzoz|
|zoBoPozo|
|ozozoNoz|
|PPPPzPPP|
|RNBQKzoR|
+--------+
11 changes: 11 additions & 0 deletions .tests/expected/easy_com_sand-fall_e08.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
| |
| D |
| DdD|
| CCCC Dddd|
|CCccccCCCC BBBBBB Ddddd|
|ccccccccccCCC BBBbbbbbbBBBDddddd|
|ccccAAcccccBBBbbbbbbbbbbbbBBBddd|
|ccAAaaAABBBbbbbbbbbbbbbbbbbbbBBB|
|AAaaaaaaAAbbbbbbbbbbbbbbbbbbbbbb|
|aaaaaaaaaaAAbbbbbbbbbbbbbbbbbbbb|
+--------------------------------+
16 changes: 16 additions & 0 deletions .tests/expected/easy_com_sand-fall_e09.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
| |
| |
| |
| |
| e |
| tt tin |
| euhw dtfao |
| ralded arttscl |
| tiactaal otgeafrsa |
| friosairorfarrrftiwco |
| lfIsctneitnphtwiebfetes |
| hihietsptawaorlialfcncwpit |
| seitoweirlesdasoimalspordnte|
| rcesaleshlgfutllrsgleolyshlss|
|wrtiIeIoafWeiiemhwcahnnnrpleft|
+------------------------------+
1 change: 1 addition & 0 deletions .tests/expected/hard_com_fold-and-cut_e01.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
1 change: 1 addition & 0 deletions .tests/expected/hard_com_fold-and-cut_e02.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
1 change: 1 addition & 0 deletions .tests/expected/hard_com_fold-and-cut_e03.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1
1 change: 1 addition & 0 deletions .tests/expected/hard_com_fold-and-cut_e04.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4
1 change: 1 addition & 0 deletions .tests/expected/hard_com_fold-and-cut_e05.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7
1 change: 1 addition & 0 deletions .tests/expected/hard_com_fold-and-cut_e06.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16
1 change: 1 addition & 0 deletions .tests/expected/hard_com_fold-and-cut_e07.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
30
1 change: 1 addition & 0 deletions .tests/expected/hard_com_fold-and-cut_e08.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16
1 change: 1 addition & 0 deletions .tests/expected/hard_com_fold-and-cut_e09.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0
13 changes: 13 additions & 0 deletions .tests/expected/medium_com_literary-alfabet-soupe_e01.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Spanish
English
Danish
Estonian
Finnish
French
German
Irish
Italian
Portuguese
Swedish
Turkish
Welsh
13 changes: 13 additions & 0 deletions .tests/expected/medium_com_literary-alfabet-soupe_e02.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
French
English
Welsh
Irish
German
Spanish
Italian
Portuguese
Danish
Swedish
Finnish
Turkish
Estonian
13 changes: 13 additions & 0 deletions .tests/expected/medium_com_literary-alfabet-soupe_e03.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Danish
English
Italian
Estonian
Portuguese
Finnish
Spanish
Turkish
Swedish
Irish
French
Welsh
German
Loading

0 comments on commit 87d1cfa

Please sign in to comment.