Skip to content

Commit fd20090

Browse files
Update testing.c
1 parent a721694 commit fd20090

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

code/logic/testing.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -817,10 +817,6 @@ void fossil_test_run_case(fossil_test_case_t *test_case, fossil_test_env_t *env)
817817
clock_t end_iter = clock();
818818
test_case->execution_time = (double)(end_iter - start_iter) / CLOCKS_PER_SEC;
819819

820-
// if (_ASSERT_COUNT == 0) {
821-
// printf(FOSSIL_TEST_COLOR_YELLOW "WARNING: %s contains no assertions\n" FOSSIL_TEST_COLOR_RESET, test_case->name);
822-
// }
823-
824820
fossil_fossil_test_case_teardown(test_case);
825821

826822
switch (test_case->status) {
@@ -998,7 +994,7 @@ void fossil_test_suggest(fossil_test_env_t *env) {
998994
if (env->pass_count == 0 && env->fail_count == 0 && env->skip_count == 0 && env->timeout_count == 0 && env->empty_count > 0) {
999995
printf(FOSSIL_TEST_COLOR_CYAN FOSSIL_TEST_ATTR_ITALIC "Suggestion: %s\n" FOSSIL_TEST_COLOR_RESET, empty_suite_suggestions[rand() % 50]);
1000996
} else if (env->fail_count > 0) {
1001-
printf(FOSSIL_TEST_COLOR_CYAN "Suggestion: %s\n" FOSSIL_TEST_COLOR_RESET, failure_suggestions[rand() % 50]);
997+
printf(FOSSIL_TEST_COLOR_CYAN FOSSIL_TEST_ATTR_ITALIC "Suggestion: %s\n" FOSSIL_TEST_COLOR_RESET, failure_suggestions[rand() % 50]);
1002998
} else if (env->pass_count > 0) {
1003999
printf(FOSSIL_TEST_COLOR_CYAN FOSSIL_TEST_ATTR_ITALIC "Suggestion: %s\n" FOSSIL_TEST_COLOR_RESET, success_suggestions[rand() % 50]);
10041000
} else if (env->timeout_count > 0) {

0 commit comments

Comments
 (0)