Skip to content

Commit 549ffdb

Browse files
split into two sets
1 parent 9f7acea commit 549ffdb

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

code/logic/unittest.c

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,49 @@
1414
*/
1515
#include "fossil/test/unittest.h"
1616

17+
#ifdef __WIN32
18+
// Array of messages for each category
19+
const char *sarcastic_messages[] = {
20+
"Wow, no tests were run! What a productive day!",
21+
"No tests to run, guess we're all just too good at writing code.",
22+
"Congratulations, you’ve done absolutely nothing today.",
23+
"Oh, look! No tests were executed. What an achievement!",
24+
"Not a single test run, but hey, that's one way to keep things perfect!",
25+
"All set for a day of zero productivity? Nice!",
26+
"The test suite is empty, but hey, at least the code didn’t break!",
27+
"Zero tests executed. Clearly, you've mastered the art of doing nothing.",
28+
"Great! We’ve made it through an entire test run without running a single test.",
29+
"Isn’t it great when there’s nothing to test?"
30+
};
31+
32+
const char *humorous_messages[] = {
33+
"Well, that was an epic failure! Better luck next time!",
34+
"Whoops! Someone’s definitely gonna need to debug that.",
35+
"Looks like someone forgot to write the test cases.",
36+
"Your tests failed, but at least you got closer to perfection... not.",
37+
"Not all heroes wear capes. Some of them fail tests.",
38+
"Don't worry, failure is just success in disguise. Or maybe not.",
39+
"Well, that was awkward. Let's try again, shall we?",
40+
"Looks like we’ve encountered a bug! Hope you’ve got a magnifying glass.",
41+
"Your tests are taking a nap, but don’t worry, we’ll wake them up!",
42+
"It’s not a failure, it’s just a learning experience! A very *expensive* one."
43+
};
44+
45+
const char *great_news_messages[] = {
46+
"Great news! All tests passed. You’re a testing genius!",
47+
"Success! Everything works as expected. Go celebrate!",
48+
"You did it! All tests passed. You’re officially a rock star!",
49+
"Congrats, all tests passed! You’ve earned a gold star!",
50+
"Woohoo! All tests passed with flying colors!",
51+
"No bugs found today, you’re on fire!",
52+
"Amazing! You’ve got a perfect test suite. Keep it up!",
53+
"Nice job! All tests passed. I think we’ve found the next coding superhero!",
54+
"Fantastic! No issues at all, just pure success!",
55+
"All tests passed, everything’s awesome."
56+
};
57+
58+
#else
59+
1760
// Array of messages for each category
1861
const char *sarcastic_messages[] = {
1962
"Wow, no tests were run! What a productive day! 😏",
@@ -54,6 +97,8 @@ const char *great_news_messages[] = {
5497
"All tests passed, everything’s awesome. 🎶"
5598
};
5699

100+
#endif
101+
57102
jmp_buf test_jump_buffer; // This will hold the jump buffer for longjmp
58103

59104
char *_custom_fossil_test_strdup(const char *str) {

0 commit comments

Comments
 (0)