diff options
Diffstat (limited to 'test/077_copy_edges')
| -rw-r--r-- | test/077_copy_edges/copy_edges_tests.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/077_copy_edges/copy_edges_tests.c b/test/077_copy_edges/copy_edges_tests.c index b428f89..9afcb73 100644 --- a/test/077_copy_edges/copy_edges_tests.c +++ b/test/077_copy_edges/copy_edges_tests.c | |||
| @@ -1,23 +1,19 @@ | |||
| 1 | #include "../test.h" | 1 | #include "../test.h" |
| 2 | 2 | ||
| 3 | void copy_edges_fast(cube_fast_t *, cube_fast_t); | 3 | void copy_edges(cube_t *, cube_t); |
| 4 | 4 | ||
| 5 | int main(void) { | 5 | int main(void) { |
| 6 | char str[STRLENMAX]; | 6 | char str[STRLENMAX]; |
| 7 | cube_t c1, c2; | 7 | cube_t c1, c2; |
| 8 | cube_fast_t f1, f2; | ||
| 9 | 8 | ||
| 10 | fgets(str, STRLENMAX, stdin); | 9 | fgets(str, STRLENMAX, stdin); |
| 11 | c1 = readcube("H48", str); | 10 | c1 = readcube("H48", str); |
| 12 | f1 = cubetofast(c1); | ||
| 13 | 11 | ||
| 14 | fgets(str, STRLENMAX, stdin); | 12 | fgets(str, STRLENMAX, stdin); |
| 15 | c2 = readcube("H48", str); | 13 | c2 = readcube("H48", str); |
| 16 | f2 = cubetofast(c2); | ||
| 17 | 14 | ||
| 18 | copy_edges_fast(&f1, f2); | 15 | copy_edges(&c1, c2); |
| 19 | 16 | ||
| 20 | c1 = fasttocube(f1); | ||
| 21 | if (iserror(c1)) { | 17 | if (iserror(c1)) { |
| 22 | printf("Error setting EO\n"); | 18 | printf("Error setting EO\n"); |
| 23 | } else if (!isconsistent(c1)) { | 19 | } else if (!isconsistent(c1)) { |
