forked from aeonstasis/life-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjl48629-TestLife.out
244 lines (240 loc) · 12.4 KB
/
jl48629-TestLife.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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
==18515== Memcheck, a memory error detector
==18515== Copyright (C) 2002-2013, and GNU GPL'd, by Julian Seward et al.
==18515== Using Valgrind-3.10.1 and LibVEX; rerun with -h for copyright info
==18515== Command: ./TestLife
==18515==
Running main() from gtest_main.cc
[==========] Running 100 tests from 4 test cases.
[----------] Global test environment set-up.
[----------] 36 tests from ConwayCellFixture
[ RUN ] ConwayCellFixture.init_dead
[ OK ] ConwayCellFixture.init_dead (8 ms)
[ RUN ] ConwayCellFixture.init_live
[ OK ] ConwayCellFixture.init_live (2 ms)
[ RUN ] ConwayCellFixture.print_dead
[ OK ] ConwayCellFixture.print_dead (6 ms)
[ RUN ] ConwayCellFixture.print_live
[ OK ] ConwayCellFixture.print_live (3 ms)
[ RUN ] ConwayCellFixture.count_ac_null
[ OK ] ConwayCellFixture.count_ac_null (3 ms)
[ RUN ] ConwayCellFixture.count_cc_null
[ OK ] ConwayCellFixture.count_cc_null (2 ms)
[ RUN ] ConwayCellFixture.count_ac_one_direct_dead
[ OK ] ConwayCellFixture.count_ac_one_direct_dead (3 ms)
[ RUN ] ConwayCellFixture.count_cc_one_direct_dead
[ OK ] ConwayCellFixture.count_cc_one_direct_dead (3 ms)
[ RUN ] ConwayCellFixture.count_ac_one_direct_live
[ OK ] ConwayCellFixture.count_ac_one_direct_live (3 ms)
[ RUN ] ConwayCellFixture.count_cc_one_direct_live
[ OK ] ConwayCellFixture.count_cc_one_direct_live (2 ms)
[ RUN ] ConwayCellFixture.count_ac_one_diagonal_dead
[ OK ] ConwayCellFixture.count_ac_one_diagonal_dead (3 ms)
[ RUN ] ConwayCellFixture.count_cc_one_diagonal_dead
[ OK ] ConwayCellFixture.count_cc_one_diagonal_dead (3 ms)
[ RUN ] ConwayCellFixture.count_ac_one_diagonal_live
[ OK ] ConwayCellFixture.count_ac_one_diagonal_live (2 ms)
[ RUN ] ConwayCellFixture.count_cc_one_diagonal_live
[ OK ] ConwayCellFixture.count_cc_one_diagonal_live (3 ms)
[ RUN ] ConwayCellFixture.count_ac_four_mixed
[ OK ] ConwayCellFixture.count_ac_four_mixed (2 ms)
[ RUN ] ConwayCellFixture.count_cc_four_mixed
[ OK ] ConwayCellFixture.count_cc_four_mixed (3 ms)
[ RUN ] ConwayCellFixture.update_dead_zero_neighbors
[ OK ] ConwayCellFixture.update_dead_zero_neighbors (3 ms)
[ RUN ] ConwayCellFixture.update_dead_one_neighbor
[ OK ] ConwayCellFixture.update_dead_one_neighbor (3 ms)
[ RUN ] ConwayCellFixture.update_dead_two_neighbors
[ OK ] ConwayCellFixture.update_dead_two_neighbors (2 ms)
[ RUN ] ConwayCellFixture.update_dead_three_neighbors
[ OK ] ConwayCellFixture.update_dead_three_neighbors (3 ms)
[ RUN ] ConwayCellFixture.update_dead_four_neighbors
[ OK ] ConwayCellFixture.update_dead_four_neighbors (3 ms)
[ RUN ] ConwayCellFixture.update_dead_five_neighbors
[ OK ] ConwayCellFixture.update_dead_five_neighbors (2 ms)
[ RUN ] ConwayCellFixture.update_dead_six_neighbors
[ OK ] ConwayCellFixture.update_dead_six_neighbors (3 ms)
[ RUN ] ConwayCellFixture.update_dead_seven_neighbors
[ OK ] ConwayCellFixture.update_dead_seven_neighbors (2 ms)
[ RUN ] ConwayCellFixture.update_dead_eight_neighbors
[ OK ] ConwayCellFixture.update_dead_eight_neighbors (3 ms)
[ RUN ] ConwayCellFixture.update_live_zero_neighbors
[ OK ] ConwayCellFixture.update_live_zero_neighbors (3 ms)
[ RUN ] ConwayCellFixture.update_live_one_neighbor
[ OK ] ConwayCellFixture.update_live_one_neighbor (2 ms)
[ RUN ] ConwayCellFixture.update_live_two_neighbors
[ OK ] ConwayCellFixture.update_live_two_neighbors (3 ms)
[ RUN ] ConwayCellFixture.update_live_three_neighbors
[ OK ] ConwayCellFixture.update_live_three_neighbors (3 ms)
[ RUN ] ConwayCellFixture.update_live_four_neighbors
[ OK ] ConwayCellFixture.update_live_four_neighbors (2 ms)
[ RUN ] ConwayCellFixture.update_live_five_neighbors
[ OK ] ConwayCellFixture.update_live_five_neighbors (3 ms)
[ RUN ] ConwayCellFixture.update_live_six_neighbors
[ OK ] ConwayCellFixture.update_live_six_neighbors (2 ms)
[ RUN ] ConwayCellFixture.update_live_seven_neighbors
[ OK ] ConwayCellFixture.update_live_seven_neighbors (3 ms)
[ RUN ] ConwayCellFixture.update_live_eight_neighbors
[ OK ] ConwayCellFixture.update_live_eight_neighbors (2 ms)
[ RUN ] ConwayCellFixture.clone_dead
[ OK ] ConwayCellFixture.clone_dead (3 ms)
[ RUN ] ConwayCellFixture.clone_live
[ OK ] ConwayCellFixture.clone_live (3 ms)
[----------] 36 tests from ConwayCellFixture (112 ms total)
[----------] 41 tests from FredkinCellFixture
[ RUN ] FredkinCellFixture.init_dead
[ OK ] FredkinCellFixture.init_dead (2 ms)
[ RUN ] FredkinCellFixture.init_live
[ OK ] FredkinCellFixture.init_live (2 ms)
[ RUN ] FredkinCellFixture.print_dead
[ OK ] FredkinCellFixture.print_dead (2 ms)
[ RUN ] FredkinCellFixture.print_live_zero_generations
[ OK ] FredkinCellFixture.print_live_zero_generations (2 ms)
[ RUN ] FredkinCellFixture.print_live_one_generation
[ OK ] FredkinCellFixture.print_live_one_generation (4 ms)
[ RUN ] FredkinCellFixture.print_live_two_generations
[ OK ] FredkinCellFixture.print_live_two_generations (3 ms)
[ RUN ] FredkinCellFixture.print_live_three_generations
[ OK ] FredkinCellFixture.print_live_three_generations (4 ms)
[ RUN ] FredkinCellFixture.print_live_four_generations
[ OK ] FredkinCellFixture.print_live_four_generations (5 ms)
[ RUN ] FredkinCellFixture.print_live_five_generations
[ OK ] FredkinCellFixture.print_live_five_generations (6 ms)
[ RUN ] FredkinCellFixture.print_live_six_generations
[ OK ] FredkinCellFixture.print_live_six_generations (6 ms)
[ RUN ] FredkinCellFixture.print_live_seven_generations
[ OK ] FredkinCellFixture.print_live_seven_generations (7 ms)
[ RUN ] FredkinCellFixture.print_live_eight_generations
[ OK ] FredkinCellFixture.print_live_eight_generations (7 ms)
[ RUN ] FredkinCellFixture.print_live_nine_generations
[ OK ] FredkinCellFixture.print_live_nine_generations (9 ms)
[ RUN ] FredkinCellFixture.print_live_ten_generations
[ OK ] FredkinCellFixture.print_live_ten_generations (9 ms)
[ RUN ] FredkinCellFixture.mutate_after_two_turns
[ OK ] FredkinCellFixture.mutate_after_two_turns (5 ms)
[ RUN ] FredkinCellFixture.dont_mutate_after_two_turns_if_dead_on_second_turn
[ OK ] FredkinCellFixture.dont_mutate_after_two_turns_if_dead_on_second_turn (3 ms)
[ RUN ] FredkinCellFixture.count_ac_null
[ OK ] FredkinCellFixture.count_ac_null (3 ms)
[ RUN ] FredkinCellFixture.count_fc_null
[ OK ] FredkinCellFixture.count_fc_null (2 ms)
[ RUN ] FredkinCellFixture.count_ac_one_direct_dead
[ OK ] FredkinCellFixture.count_ac_one_direct_dead (3 ms)
[ RUN ] FredkinCellFixture.count_fc_one_direct_dead
[ OK ] FredkinCellFixture.count_fc_one_direct_dead (3 ms)
[ RUN ] FredkinCellFixture.count_ac_one_direct_live
[ OK ] FredkinCellFixture.count_ac_one_direct_live (3 ms)
[ RUN ] FredkinCellFixture.count_fc_one_direct_live
[ OK ] FredkinCellFixture.count_fc_one_direct_live (2 ms)
[ RUN ] FredkinCellFixture.count_ac_one_diagonal_dead
[ OK ] FredkinCellFixture.count_ac_one_diagonal_dead (3 ms)
[ RUN ] FredkinCellFixture.count_fc_one_diagonal_dead
[ OK ] FredkinCellFixture.count_fc_one_diagonal_dead (2 ms)
[ RUN ] FredkinCellFixture.count_ac_one_diagonal_live
[ OK ] FredkinCellFixture.count_ac_one_diagonal_live (3 ms)
[ RUN ] FredkinCellFixture.count_fc_one_diagonal_live
[ OK ] FredkinCellFixture.count_fc_one_diagonal_live (2 ms)
[ RUN ] FredkinCellFixture.count_ac_four_mixed
[ OK ] FredkinCellFixture.count_ac_four_mixed (3 ms)
[ RUN ] FredkinCellFixture.count_fc_four_mixed
[ OK ] FredkinCellFixture.count_fc_four_mixed (2 ms)
[ RUN ] FredkinCellFixture.update_dead_zero_neighbors
[ OK ] FredkinCellFixture.update_dead_zero_neighbors (3 ms)
[ RUN ] FredkinCellFixture.update_dead_one_neighbor
[ OK ] FredkinCellFixture.update_dead_one_neighbor (3 ms)
[ RUN ] FredkinCellFixture.update_dead_two_neighbors
[ OK ] FredkinCellFixture.update_dead_two_neighbors (2 ms)
[ RUN ] FredkinCellFixture.update_dead_three_neighbors
[ OK ] FredkinCellFixture.update_dead_three_neighbors (3 ms)
[ RUN ] FredkinCellFixture.update_dead_four_neighbors
[ OK ] FredkinCellFixture.update_dead_four_neighbors (3 ms)
[ RUN ] FredkinCellFixture.update_live_zero_neighbors
[ OK ] FredkinCellFixture.update_live_zero_neighbors (2 ms)
[ RUN ] FredkinCellFixture.update_live_one_neighbor
[ OK ] FredkinCellFixture.update_live_one_neighbor (3 ms)
[ RUN ] FredkinCellFixture.update_live_two_neighbors
[ OK ] FredkinCellFixture.update_live_two_neighbors (3 ms)
[ RUN ] FredkinCellFixture.update_live_three_neighbors
[ OK ] FredkinCellFixture.update_live_three_neighbors (2 ms)
[ RUN ] FredkinCellFixture.update_live_four_neighbors
[ OK ] FredkinCellFixture.update_live_four_neighbors (3 ms)
[ RUN ] FredkinCellFixture.clone_dead
[ OK ] FredkinCellFixture.clone_dead (4 ms)
[ RUN ] FredkinCellFixture.clone_live
[ OK ] FredkinCellFixture.clone_live (3 ms)
[ RUN ] FredkinCellFixture.clone_young
[ OK ] FredkinCellFixture.clone_young (6 ms)
[----------] 41 tests from FredkinCellFixture (151 ms total)
[----------] 12 tests from CellFixture
[ RUN ] CellFixture.init_dead_cc
[ OK ] CellFixture.init_dead_cc (4 ms)
[ RUN ] CellFixture.init_live_cc
[ OK ] CellFixture.init_live_cc (3 ms)
[ RUN ] CellFixture.init_dead_fc
[ OK ] CellFixture.init_dead_fc (3 ms)
[ RUN ] CellFixture.init_live_fc
[ OK ] CellFixture.init_live_fc (3 ms)
[ RUN ] CellFixture.copy_construct
[ OK ] CellFixture.copy_construct (4 ms)
[ RUN ] CellFixture.copy_assign
[ OK ] CellFixture.copy_assign (4 ms)
[ RUN ] CellFixture.count_neighbors_mixed
[ OK ] CellFixture.count_neighbors_mixed (5 ms)
[ RUN ] CellFixture.count_neighbors_mixed_with_null
[ OK ] CellFixture.count_neighbors_mixed_with_null (5 ms)
[ RUN ] CellFixture.update_conway
[ OK ] CellFixture.update_conway (4 ms)
[ RUN ] CellFixture.update_fredkin_no_mutate
[ OK ] CellFixture.update_fredkin_no_mutate (3 ms)
[ RUN ] CellFixture.update_fredkin_mutate
[ OK ] CellFixture.update_fredkin_mutate (3 ms)
[ RUN ] CellFixture.is_alive
[ OK ] CellFixture.is_alive (2 ms)
[----------] 12 tests from CellFixture (45 ms total)
[----------] 11 tests from LifeFixture
[ RUN ] LifeFixture.init_empty
[ OK ] LifeFixture.init_empty (43 ms)
[ RUN ] LifeFixture.init_one_live
[ OK ] LifeFixture.init_one_live (5 ms)
[ RUN ] LifeFixture.init_oob_left
[ OK ] LifeFixture.init_oob_left (36 ms)
[ RUN ] LifeFixture.init_oob_right
[ OK ] LifeFixture.init_oob_right (3 ms)
[ RUN ] LifeFixture.init_oob_top
[ OK ] LifeFixture.init_oob_top (4 ms)
[ RUN ] LifeFixture.init_oob_bottom
[ OK ] LifeFixture.init_oob_bottom (3 ms)
[ RUN ] LifeFixture.init_large
[ OK ] LifeFixture.init_large (29 ms)
[ RUN ] LifeFixture.step_block
[ OK ] LifeFixture.step_block (21 ms)
[ RUN ] LifeFixture.step_beehive
[ OK ] LifeFixture.step_beehive (15 ms)
[ RUN ] LifeFixture.step_blinker
[ OK ] LifeFixture.step_blinker (29 ms)
[ RUN ] LifeFixture.step_glider
[ OK ] LifeFixture.step_glider (11 ms)
[----------] 11 tests from LifeFixture (202 ms total)
[----------] Global test environment tear-down
[==========] 100 tests from 4 test cases ran. (539 ms total)
[ PASSED ] 100 tests.
==18515==
==18515== HEAP SUMMARY:
==18515== in use at exit: 0 bytes in 0 blocks
==18515== total heap usage: 2,591 allocs, 2,591 frees, 369,114 bytes allocated
==18515==
==18515== All heap blocks were freed -- no leaks are possible
==18515==
==18515== For counts of detected and suppressed errors, rerun with: -v
==18515== ERROR SUMMARY: 0 errors from 0 contexts (suppressed: 0 from 0)
File 'Life.h'
Lines executed:99.28% of 139
Branches executed:94.52% of 146
Taken at least once:78.77% of 146
Calls executed:70.93% of 172
Creating 'Life.h.gcov'
File 'TestLife.c++'
Lines executed:100.00% of 691
Branches executed:58.09% of 4142
Taken at least once:29.16% of 4142
Calls executed:48.96% of 4512
Creating 'TestLife.c++.gcov'