-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctest.c
More file actions
51 lines (43 loc) · 776 Bytes
/
functest.c
File metadata and controls
51 lines (43 loc) · 776 Bytes
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
#include "cubesolve.h"
int main() {
//currently failing, cuts off the last true
bool data[3][3][3] = {
{
{false,true,true},
{false,true,true},
{false,false,false}
},
{
{false,true,true},
{false,true,true},
{false,false,false}
},
{
{false,false,true},
{false,false,false},
{false,false,false},
}
};
printf("initdata: ");
for (int x=0;x<3;++x) {
for (int y=0;y<3;++y) {
for (int z=0;z<3;++z) {
printf("%d ",data[x][y][z]);
}
}
}
printf("\n");
piece p;
init_piece(&p,data);
printf("piecedat: ");
for (int x=0;x<3;++x) {
for (int y=0;y<3;++y) {
for (int z=0;z<3;++z) {
printf("%d ",p.piecedat[x][y][z]);
}
}
}
printf("\nlen: ");
for (int i=0;i<3;++i) printf("%d ",p.len[i]);
printf("\n");
}