History

tests2: fix 30_hanoi test and enable it.

minux committed 12 years ago

Commit 0a513861 parent 0e3d2e02 files · +2 −2Browse files

Unified · Split

2 files
  1. tests/tests2/30_hanoi.c +1 −1
  2. tests/tests2/Makefile +1 −1
tests/tests2/30_hanoi.c+1−1
@@ -68,7 +68,7 @@ void PrintAll() · 67 unmodified lines
68/* Returns the value moved (not used.) */68/* Returns the value moved (not used.) */
69int Move(int *source, int *dest)69int Move(int *source, int *dest)
70{70{
71 int i,j;71 int i = 0, j = 0;
72 72
73 while (i<N && (source[i])==0) i++;73 while (i<N && (source[i])==0) i++;
74 while (j<N && (dest[j])==0) j++;74 while (j<N && (dest[j])==0) j++;
tests/tests2/Makefile+1−1
@@ -88,7 +88,7 @@ TESTS = \ · 87 unmodified lines
88# 34_array_assignment.test -- array assignment is not in C standard88# 34_array_assignment.test -- array assignment is not in C standard
89# 46_grep.test -- does not compile even with gcc89# 46_grep.test -- does not compile even with gcc
90 90
91SKIP = 30_hanoi.test 34_array_assignment.test 46_grep.test91SKIP = 34_array_assignment.test 46_grep.test
92 92
93# some tests do not pass on all platforms, remove them for now93# some tests do not pass on all platforms, remove them for now
94ifeq ($(TARGETOS),Darwin)94ifeq ($(TARGETOS),Darwin)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t