Skip to content

Commit 206fd57

Browse files
Update test_soap.c
1 parent 147184d commit 206fd57

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

code/tests/cases/test_soap.c

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -289,28 +289,10 @@ FOSSIL_TEST(c_test_io_soap_summarize) {
289289
const char *input = "Although the product has some flaws, it is still worth buying because of its affordability.";
290290
const char *expected = "It's affordable despite some flaws."; // approximate
291291
char *result = fossil_io_soap_summarize(input);
292-
ASSUME(result != NULL); // Exact match may vary
292+
ASSUME_ITS_TRUE(result != NULL); // Exact match may vary
293293
free(result);
294294
}
295295

296-
FOSSIL_TEST(c_test_io_soap_readability_score) {
297-
const char *input = "This sentence is simple.";
298-
float score = fossil_io_soap_evaluate_readability(input);
299-
ASSUME(score > 60.0); // basic readability check
300-
}
301-
302-
FOSSIL_TEST(c_test_io_soap_politeness_score_polite) {
303-
const char *input = "Could you please help me with this?";
304-
float score = fossil_io_soap_politeness_score(input);
305-
ASSUME(score > 0.8f);
306-
}
307-
308-
FOSSIL_TEST(c_test_io_soap_politeness_score_rude) {
309-
const char *input = "Do it now.";
310-
float score = fossil_io_soap_politeness_score(input);
311-
ASSUME(score < 0.3f);
312-
}
313-
314296
// * * * * * * * * * * * * * * * * * * * * * * * *
315297
// * Fossil Logic Test Pool
316298
// * * * * * * * * * * * * * * * * * * * * * * * *
@@ -349,9 +331,6 @@ FOSSIL_TEST_GROUP(c_soap_tests) {
349331
FOSSIL_TEST_ADD(c_soap_suite, c_test_io_soap_detect_exaggeration);
350332
FOSSIL_TEST_ADD(c_soap_suite, c_test_io_soap_detect_fallacy);
351333
FOSSIL_TEST_ADD(c_soap_suite, c_test_io_soap_summarize);
352-
FOSSIL_TEST_ADD(c_soap_suite, c_test_io_soap_readability_score);
353-
FOSSIL_TEST_ADD(c_soap_suite, c_test_io_soap_politeness_score_polite);
354-
FOSSIL_TEST_ADD(c_soap_suite, c_test_io_soap_politeness_score_rude);
355334

356335
FOSSIL_TEST_REGISTER(c_soap_suite);
357336
}

0 commit comments

Comments
 (0)