Navigation Menu

Skip to content

Commit

Permalink
Fix a stupid whitespace typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Bronson committed Jun 25, 2008
1 parent da392ab commit 930cbc7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion ctassert.h
Expand Up @@ -145,7 +145,7 @@
#define AssertStrNonEmpty(p) do { char *pv = (void*)(p); \
if(!(pv)) { ctest_assert(0, __FILE__, __LINE__, #p" is nonempty with " #p " set to NULL"); } \
else if(!(pv)[0]) { ctest_assert(0, __FILE__, __LINE__, #p" is nonempty with " #p"[0] set to 0"); } \
else ctest_assert_fmt(1, __FILE__, __LINE__, #p"is empty with " #p " set to \"%s\"", pv, NULL); \
else ctest_assert_fmt(1, __FILE__, __LINE__, #p" is empty with " #p " set to \"%s\"", pv, NULL); \
} while(0)

#define AssertStringEmpty(x) AssertStrEmpty(x)
Expand Down
4 changes: 2 additions & 2 deletions test/05-Verbose2-alt.test
Expand Up @@ -149,7 +149,7 @@ STDOUT:
134. assert e is empty with e[0]=0 at ctassert.c:NNN: success
135. inverted assert a is empty with a set to "Bogozity" at ctassert.c:NNN: success
136. inverted assert n is empty with n set to NULL at ctassert.c:NNN: success
137. assert ais empty with a set to "Bogozity" at ctassert.c:NNN: success
137. assert a is empty with a set to "Bogozity" at ctassert.c:NNN: success
138. inverted assert e is nonempty with e[0] set to 0 at ctassert.c:NNN: success
139. inverted assert n is nonempty with n set to NULL at ctassert.c:NNN: success
}
Expand All @@ -164,7 +164,7 @@ STDOUT:
147. assert ctest_multi_calls == 1 with ctest_multi_calls=1 and 1=1 at ctassert.c:NNN: success
148. assert multi_str_empty() is empty with multi_str_empty()[0]=0 at ctassert.c:NNN: success
149. assert ctest_multi_calls == 1 with ctest_multi_calls=1 and 1=1 at ctassert.c:NNN: success
150. assert multi_str()is empty with multi_str() set to "yep" at ctassert.c:NNN: success
150. assert multi_str() is empty with multi_str() set to "yep" at ctassert.c:NNN: success
151. assert ctest_multi_calls == 1 with ctest_multi_calls=1 and 1=1 at ctassert.c:NNN: success
}
7. Running AssertNesting at ctassert.c:NNN {
Expand Down
4 changes: 2 additions & 2 deletions test/05-Verbose2.test
Expand Up @@ -149,7 +149,7 @@ STDOUT:
134. assert e is empty with e[0]=0 at ctassert.c:NNN: success
135. inverted assert a is empty with a set to "Bogozity" at ctassert.c:NNN: success
136. inverted assert n is empty with n set to NULL at ctassert.c:NNN: success
137. assert ais empty with a set to "Bogozity" at ctassert.c:NNN: success
137. assert a is empty with a set to "Bogozity" at ctassert.c:NNN: success
138. inverted assert e is nonempty with e[0] set to 0 at ctassert.c:NNN: success
139. inverted assert n is nonempty with n set to NULL at ctassert.c:NNN: success
}
Expand All @@ -164,7 +164,7 @@ STDOUT:
147. assert ctest_multi_calls == 1 with ctest_multi_calls=1 and 1=1 at ctassert.c:NNN: success
148. assert multi_str_empty() is empty with multi_str_empty()[0]=0 at ctassert.c:NNN: success
149. assert ctest_multi_calls == 1 with ctest_multi_calls=1 and 1=1 at ctassert.c:NNN: success
150. assert multi_str()is empty with multi_str() set to "yep" at ctassert.c:NNN: success
150. assert multi_str() is empty with multi_str() set to "yep" at ctassert.c:NNN: success
151. assert ctest_multi_calls == 1 with ctest_multi_calls=1 and 1=1 at ctassert.c:NNN: success
}
7. Running AssertNesting at ctassert.c:NNN {
Expand Down

0 comments on commit 930cbc7

Please sign in to comment.