-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdavismc-TestDarwin.out
209 lines (205 loc) · 11.2 KB
/
davismc-TestDarwin.out
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
Running main() from gtest_main.cc
[==========] Running 90 tests from 4 test cases.
[----------] Global test environment set-up.
[----------] 28 tests from Board
[ RUN ] Board.printBoard_empty_board_4by4
[ OK ] Board.printBoard_empty_board_4by4 (75 ms)
[ RUN ] Board.getIndex_row1_col2_should_be_index_6_board_4by4
[ OK ] Board.getIndex_row1_col2_should_be_index_6_board_4by4 (5 ms)
[ RUN ] Board.getIndex_row3_col4_should_be_index_19_board_5by5
[ OK ] Board.getIndex_row3_col4_should_be_index_19_board_5by5 (5 ms)
[ RUN ] Board.getIndex_row0_col0_should_be_index_0_board_default_size
[ OK ] Board.getIndex_row0_col0_should_be_index_0_board_default_size (5 ms)
[ RUN ] Board.getIndex_row14_col14_should_be_index_224_board_default_size
[ OK ] Board.getIndex_row14_col14_should_be_index_224_board_default_size (5 ms)
[ RUN ] Board.isOccupied_at_row0_col0
[ OK ] Board.isOccupied_at_row0_col0 (22 ms)
[ RUN ] Board.isOccupied_at_row2_col3_5by5
[ OK ] Board.isOccupied_at_row2_col3_5by5 (10 ms)
[ RUN ] Board.isOccupied_at_row4_col4_5by5
[ OK ] Board.isOccupied_at_row4_col4_5by5 (10 ms)
[ RUN ] Board.place_at_row0_col0
[ OK ] Board.place_at_row0_col0 (7 ms)
[ RUN ] Board.place_at_row3_col4_5by5
[ OK ] Board.place_at_row3_col4_5by5 (7 ms)
[ RUN ] Board.place_at_row4_col4_bottom_right_corner_5by5
[ OK ] Board.place_at_row4_col4_bottom_right_corner_5by5 (7 ms)
[ RUN ] Board.get_row0_col0
[ OK ] Board.get_row0_col0 (10 ms)
[ RUN ] Board.get_row3_col4_5by5
[ OK ] Board.get_row3_col4_5by5 (9 ms)
[ RUN ] Board.get_row4_col4_bottom_right_corner_5by5
[ OK ] Board.get_row4_col4_bottom_right_corner_5by5 (9 ms)
[ RUN ] Board.remove_row0_col0
[ OK ] Board.remove_row0_col0 (15 ms)
[ RUN ] Board.remove_row3_col4_5by5
[ OK ] Board.remove_row3_col4_5by5 (12 ms)
[ RUN ] Board.remove_row4_col4_bottom_right_corner_5by5
[ OK ] Board.remove_row4_col4_bottom_right_corner_5by5 (12 ms)
[ RUN ] Board.remove_row6_col6_5by5_expect_throw_out_of_range
[ OK ] Board.remove_row6_col6_5by5_expect_throw_out_of_range (87 ms)
[ RUN ] Board.isInBounds_row0_col0_5by5_expect_true
[ OK ] Board.isInBounds_row0_col0_5by5_expect_true (4 ms)
[ RUN ] Board.isInBounds_row2_col3_5by5_expect_true
[ OK ] Board.isInBounds_row2_col3_5by5_expect_true (4 ms)
[ RUN ] Board.isInBounds_row4_col4_5by5_expect_true
[ OK ] Board.isInBounds_row4_col4_5by5_expect_true (4 ms)
[ RUN ] Board.isInBounds_row5_col5_5by5_expect_throw_out_of_range
[ OK ] Board.isInBounds_row5_col5_5by5_expect_throw_out_of_range (3 ms)
[ RUN ] Board.isInBounds_row_neg1_col1_5by5_expect_throw_out_of_range
[ OK ] Board.isInBounds_row_neg1_col1_5by5_expect_throw_out_of_range (3 ms)
[ RUN ] Board.isInBounds_row1_col_neg1_5by5_expect_throw_out_of_range
[ OK ] Board.isInBounds_row1_col_neg1_5by5_expect_throw_out_of_range (4 ms)
[ RUN ] Board.isInBounds_row_neg1_col_neg1_5by5_expect_throw_out_of_range
[ OK ] Board.isInBounds_row_neg1_col_neg1_5by5_expect_throw_out_of_range (3 ms)
[ RUN ] Board.isInBounds_row6_col7_7by8_expect_true
[ OK ] Board.isInBounds_row6_col7_7by8_expect_true (4 ms)
[ RUN ] Board.isInBounds_row7_col7_7by8_expect_throw_out_of_range
[ OK ] Board.isInBounds_row7_col7_7by8_expect_throw_out_of_range (3 ms)
[ RUN ] Board.isInBounds_row6_col8_7by8_expect_throw_out_of_range
[ OK ] Board.isInBounds_row6_col8_7by8_expect_throw_out_of_range (4 ms)
[----------] 28 tests from Board (391 ms total)
[----------] 36 tests from Creature
[ RUN ] Creature.printSelf
[ OK ] Creature.printSelf (18 ms)
[ RUN ] Creature.printSelf_default_expect_d
[ OK ] Creature.printSelf_default_expect_d (7 ms)
[ RUN ] Creature.hop_north_right_edge_4by4
0123
0 ....
1 ...t
2 ....
3 ....
0123
0 ....
1 ...t
2 ....
3 ....
[ OK ] Creature.hop_north_right_edge_4by4 (20 ms)
[ RUN ] Creature.hop_south_left_edge_twice_4by4
[ OK ] Creature.hop_south_left_edge_twice_4by4 (10 ms)
[ RUN ] Creature.hop_west_right_edge_twice_4by4
[ OK ] Creature.hop_west_right_edge_twice_4by4 (11 ms)
[ RUN ] Creature.hop_east_bottom_edge_twice_4by4
[ OK ] Creature.hop_east_bottom_edge_twice_4by4 (10 ms)
[ RUN ] Creature.getFacingRowCol_east
[ OK ] Creature.getFacingRowCol_east (9 ms)
[ RUN ] Creature.getFacingRowCol_west
[ OK ] Creature.getFacingRowCol_west (9 ms)
[ RUN ] Creature.getFacingRowCol_south
[ OK ] Creature.getFacingRowCol_south (8 ms)
[ RUN ] Creature.getFacingRowCol_north
[ OK ] Creature.getFacingRowCol_north (8 ms)
[ RUN ] Creature.run_facing_west_turn_left_expect_south
[ OK ] Creature.run_facing_west_turn_left_expect_south (33 ms)
[ RUN ] Creature.run_facing_south_turn_left_expect_east
[ OK ] Creature.run_facing_south_turn_left_expect_east (8 ms)
[ RUN ] Creature.run_facing_east_turn_left_expect_north
[ OK ] Creature.run_facing_east_turn_left_expect_north (8 ms)
[ RUN ] Creature.run_facing_north_turn_left_expect_west
[ OK ] Creature.run_facing_north_turn_left_expect_west (8 ms)
[ RUN ] Creature.run_facing_north_turn_right_expect_east
[ OK ] Creature.run_facing_north_turn_right_expect_east (9 ms)
[ RUN ] Creature.run_facing_east_turn_right_expect_south
[ OK ] Creature.run_facing_east_turn_right_expect_south (9 ms)
[ RUN ] Creature.run_facing_south_turn_right_expect_west
[ OK ] Creature.run_facing_south_turn_right_expect_west (9 ms)
[ RUN ] Creature.run_facing_west_turn_right_expect_north
[ OK ] Creature.run_facing_west_turn_right_expect_north (9 ms)
[ RUN ] Creature.infect_facing_wall_expect_exception
[ OK ] Creature.infect_facing_wall_expect_exception (14 ms)
[ RUN ] Creature.isEnemy_same_species_expect_false
[ OK ] Creature.isEnemy_same_species_expect_false (11 ms)
[ RUN ] Creature.isEnemy_diff_species_expect_true
[ OK ] Creature.isEnemy_diff_species_expect_true (18 ms)
[ RUN ] Creature.infect_facing_empty_expect_do_nothing
[ OK ] Creature.infect_facing_empty_expect_do_nothing (10 ms)
[ RUN ] Creature.run_go
[ OK ] Creature.run_go (12 ms)
[ RUN ] Creature.run_if_empty_is_empty
[ OK ] Creature.run_if_empty_is_empty (13 ms)
[ RUN ] Creature.run_if_empty_not_empty
[ OK ] Creature.run_if_empty_not_empty (16 ms)
[ RUN ] Creature.run_if_enemy_is_enemy
[ OK ] Creature.run_if_enemy_is_enemy (17 ms)
[ RUN ] Creature.run_if_enemy_not_enemy
[ OK ] Creature.run_if_enemy_not_enemy (15 ms)
[ RUN ] Creature.run_if_enemy_is_empty
[ OK ] Creature.run_if_enemy_is_empty (16 ms)
[ RUN ] Creature.run_if_wall_facing_west_left_edge
[ OK ] Creature.run_if_wall_facing_west_left_edge (13 ms)
[ RUN ] Creature.run_if_wall_facing_east_left_edge_expect_false
[ OK ] Creature.run_if_wall_facing_east_left_edge_expect_false (12 ms)
[ RUN ] Creature.run_if_wall_facing_east_right_edge
4
[ OK ] Creature.run_if_wall_facing_east_right_edge (12 ms)
[ RUN ] Creature.run_if_wall_facing_west_right_edge_expect_false
[ OK ] Creature.run_if_wall_facing_west_right_edge_expect_false (12 ms)
[ RUN ] Creature.run_if_wall_facing_south_bottom_row
[ OK ] Creature.run_if_wall_facing_south_bottom_row (11 ms)
[ RUN ] Creature.run_if_wall_facing_north_bottom_row_expect_false
[ OK ] Creature.run_if_wall_facing_north_bottom_row_expect_false (12 ms)
[ RUN ] Creature.run_if_wall_facing_north_top_row
[ OK ] Creature.run_if_wall_facing_north_top_row (12 ms)
[ RUN ] Creature.run_if_wall_facing_south_top_row_expect_false
[ OK ] Creature.run_if_wall_facing_south_top_row_expect_false (12 ms)
[----------] 36 tests from Creature (459 ms total)
[----------] 7 tests from Species
[ RUN ] Species.constructor
[ OK ] Species.constructor (6 ms)
[ RUN ] Species.printSelf
[ OK ] Species.printSelf (6 ms)
[ RUN ] Species.printSelf_default_expect_d
[ OK ] Species.printSelf_default_expect_d (6 ms)
[ RUN ] Species.addInstruction_one_instruction
[ OK ] Species.addInstruction_one_instruction (7 ms)
[ RUN ] Species.addInstruction_two_instructions
[ OK ] Species.addInstruction_two_instructions (9 ms)
[ RUN ] Species.getInstruction_two_instructions
[ OK ] Species.getInstruction_two_instructions (10 ms)
[ RUN ] Species.getInstruction_no_program_expect_throw_exception
[ OK ] Species.getInstruction_no_program_expect_throw_exception (47 ms)
[----------] 7 tests from Species (95 ms total)
[----------] 19 tests from Darwin
[ RUN ] Darwin.constructor
[ OK ] Darwin.constructor (8 ms)
[ RUN ] Darwin.addCreature_at_row0_col0
[ OK ] Darwin.addCreature_at_row0_col0 (8 ms)
[ RUN ] Darwin.addCreature_at_row3_col4_8by8
[ OK ] Darwin.addCreature_at_row3_col4_8by8 (8 ms)
[ RUN ] Darwin.addCreature_at_row7_col7_bottom_right_corner_8by8
[ OK ] Darwin.addCreature_at_row7_col7_bottom_right_corner_8by8 (9 ms)
[ RUN ] Darwin.printBoard_empty_5by5
[ OK ] Darwin.printBoard_empty_5by5 (7 ms)
[ RUN ] Darwin.printBoard_1creature_topleft_5by5
[ OK ] Darwin.printBoard_1creature_topleft_5by5 (8 ms)
[ RUN ] Darwin.printBoard_1creature_bottomright_5by5
[ OK ] Darwin.printBoard_1creature_bottomright_5by5 (8 ms)
[ RUN ] Darwin.printBoard_1creature_bottomright_5by5_run_turn_expect_turn1
[ OK ] Darwin.printBoard_1creature_bottomright_5by5_run_turn_expect_turn1 (10 ms)
[ RUN ] Darwin.hop_go_2creatures_hit_wall
[ OK ] Darwin.hop_go_2creatures_hit_wall (13 ms)
[ RUN ] Darwin.hop_go_2creatures_collide
[ OK ] Darwin.hop_go_2creatures_collide (11 ms)
[ RUN ] Darwin.hop_go_1creature_across_top_moving_right
[ OK ] Darwin.hop_go_1creature_across_top_moving_right (10 ms)
[ RUN ] Darwin.hop_go_1creature_across_bottom_moving_right
[ OK ] Darwin.hop_go_1creature_across_bottom_moving_right (10 ms)
[ RUN ] Darwin.hop_go_1creature_across_bottom_moving_left
[ OK ] Darwin.hop_go_1creature_across_bottom_moving_left (10 ms)
[ RUN ] Darwin.hop_go_1creature_across_left_moving_down
[ OK ] Darwin.hop_go_1creature_across_left_moving_down (9 ms)
[ RUN ] Darwin.hop_go_1creature_across_right_moving_up
[ OK ] Darwin.hop_go_1creature_across_right_moving_up (9 ms)
[ RUN ] Darwin.hop_go_1creature_across_right_hits_wall_should_stay
[ OK ] Darwin.hop_go_1creature_across_right_hits_wall_should_stay (9 ms)
[ RUN ] Darwin.hop_go_1creature_across_bottom_moving_right_hits_wall_should_stay
[ OK ] Darwin.hop_go_1creature_across_bottom_moving_right_hits_wall_should_stay (10 ms)
[ RUN ] Darwin.infect_creature_is_there_expect_creature_change_species
[ OK ] Darwin.infect_creature_is_there_expect_creature_change_species (27 ms)
[ RUN ] Darwin.infect_creature_is_same_species_expect_do_nothing
[ OK ] Darwin.infect_creature_is_same_species_expect_do_nothing (12 ms)
[----------] 19 tests from Darwin (205 ms total)
[----------] Global test environment tear-down
[==========] 90 tests from 4 test cases ran. (1251 ms total)
[ PASSED ] 90 tests.