some progress
some progress some progress
This commit is contained in:
+2
-2
@@ -26,9 +26,9 @@ Test(scanner, looks_like_float) {
|
||||
bool does_look_like_int = looks_like_int(&scanner);
|
||||
while (*scanner.cur++ != ' ');
|
||||
bool expect;
|
||||
if (scan_literal(&scanner, "true")) {
|
||||
if (scan_literal(&scanner, "true").ok) {
|
||||
expect = true;
|
||||
} else if (scan_literal(&scanner, "false")) {
|
||||
} else if (scan_literal(&scanner, "false").ok) {
|
||||
expect = false;
|
||||
} else {
|
||||
assert(false && "invalid expectation");
|
||||
|
||||
Reference in New Issue
Block a user