Permalink
Browse files

Fix the test suite

  • Loading branch information...
1 parent 1f3e7e7 commit 86c93dd170f90b65bc21c79bd4239c5b477781cf Ross Burton committed Oct 17, 2005
Showing with 16 additions and 5 deletions.
  1. +7 −0 ChangeLog
  2. +7 −3 src/sexp-test.c
  3. +1 −1 tests/not-false.ds
  4. +1 −1 tests/not-true.ds
View
@@ -1,5 +1,12 @@
2005-10-17 Ross Burton <ross@burtonini.com>
+ * src/sexp-test.c:
+ * tests/not-false.ds:
+ * tests/not-true.ds:
+ Fix the test suite (Ryan Koppenhaver)
+
+2005-10-17 Ross Burton <ross@burtonini.com>
+
* configure.in:
* NEWS:
Version 0.14.
View
@@ -60,9 +60,9 @@ int main(int argc, char **argv)
if (g_str_has_suffix (name, "-true.ds"))
expected = TRUE;
else if (g_str_has_suffix (name, "-false.ds"))
- expected = TRUE;
+ expected = FALSE;
else {
- g_printerr ("Cannot determin result for %s\n", name);
+ g_printerr ("Cannot determine expected result for %s\n", name);
return 1;
}
@@ -75,7 +75,11 @@ int main(int argc, char **argv)
g_printerr("Invalid result type for test %s\n", name);
return 1;
}
-
+ if (result->value.bool != expected) {
+ g_printerr("Incorrect result for test %s\n", name);
+ return 1;
+ }
+
g_print(".");
count++;
}
View
@@ -1 +1 @@
-(not #f)
+(not #t)
View
@@ -1 +1 @@
-(not #t)
+(not #f)

0 comments on commit 86c93dd

Please sign in to comment.