|
14 | 14 | */ |
15 | 15 | #include "fossil/test/unittest.h" |
16 | 16 |
|
| 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 | + |
17 | 60 | // Array of messages for each category |
18 | 61 | const char *sarcastic_messages[] = { |
19 | 62 | "Wow, no tests were run! What a productive day! 😏", |
@@ -54,6 +97,8 @@ const char *great_news_messages[] = { |
54 | 97 | "All tests passed, everything’s awesome. 🎶" |
55 | 98 | }; |
56 | 99 |
|
| 100 | +#endif |
| 101 | + |
57 | 102 | jmp_buf test_jump_buffer; // This will hold the jump buffer for longjmp |
58 | 103 |
|
59 | 104 | char *_custom_fossil_test_strdup(const char *str) { |
|
0 commit comments