Skip to content

Commit c552017

Browse files
Update test_soap.c
1 parent eca00da commit c552017

File tree

1 file changed

+0
-51
lines changed

1 file changed

+0
-51
lines changed

code/tests/cases/test_soap.c

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -245,16 +245,6 @@ FOSSIL_TEST(c_test_io_soap_detect_sentiment_negative) {
245245
ASSUME_ITS_EQUAL_CSTR(expected, fossil_io_soap_detect_sentiment(input));
246246
}
247247

248-
FOSSIL_TEST(c_test_io_soap_detect_harmful_true) {
249-
const char *input = "People like you shouldn't exist.";
250-
ASSUME_ITS_TRUE(fossil_io_soap_detect_harmful_content(input) == 1);
251-
}
252-
253-
FOSSIL_TEST(c_test_io_soap_detect_harmful_false) {
254-
const char *input = "I disagree with your opinion.";
255-
ASSUME_ITS_TRUE(fossil_io_soap_detect_harmful_content(input) == 0);
256-
}
257-
258248
FOSSIL_TEST(c_test_io_soap_normalize_slang_basic) {
259249
const char *input = "idk why ppl do that lol";
260250
const char *expected = "I don't know why people do that.";
@@ -263,20 +253,6 @@ FOSSIL_TEST(c_test_io_soap_normalize_slang_basic) {
263253
free(result);
264254
}
265255

266-
FOSSIL_TEST(c_test_io_soap_correct_grammar_common) {
267-
const char *input = "He go to work every day.";
268-
const char *expected = "He goes to work every day.";
269-
char *result = fossil_io_soap_correct_grammar(input);
270-
ASSUME_ITS_EQUAL_CSTR(expected, result);
271-
free(result);
272-
}
273-
274-
FOSSIL_TEST(c_test_io_soap_evaluate_readability_score) {
275-
const char *input = "The cat sat on the mat.";
276-
float score = fossil_io_soap_evaluate_readability(input);
277-
ASSUME_ITS_TRUE(score > 0.0);
278-
}
279-
280256
FOSSIL_TEST(c_test_io_soap_detect_exaggeration_true) {
281257
const char *input = "This is the worst thing to ever happen in history!";
282258
ASSUME_ITS_TRUE(fossil_io_soap_detect_exaggeration(input) == 1);
@@ -305,26 +281,6 @@ FOSSIL_TEST(c_test_io_soap_detect_clickbait_false) {
305281
ASSUME_ITS_TRUE(fossil_io_soap_detect_clickbait(input) == 0);
306282
}
307283

308-
FOSSIL_TEST(c_test_io_soap_detect_fallacy_ad_hominem) {
309-
const char *input = "You can't trust his argument because he's ugly.";
310-
const char *expected = "ad hominem";
311-
const char *result = fossil_io_soap_detect_fallacy(input);
312-
ASSUME_ITS_EQUAL_CSTR(expected, result);
313-
}
314-
315-
FOSSIL_TEST(c_test_io_soap_detect_fallacy_none) {
316-
const char *input = "We should implement this plan because it has proven benefits.";
317-
ASSUME_ITS_TRUE(fossil_io_soap_detect_fallacy(input) == NULL);
318-
}
319-
320-
FOSSIL_TEST(c_test_io_soap_summarize_simple) {
321-
const char *input = "The project aims to reduce emissions by introducing cleaner technologies and improving energy efficiency across sectors.";
322-
const char *expected = "Project reduces emissions.";
323-
char *result = fossil_io_soap_summarize(input);
324-
ASSUME_ITS_EQUAL_CSTR(expected, result);
325-
free(result);
326-
}
327-
328284
FOSSIL_TEST(c_test_io_soap_politeness_score_range) {
329285
const char *input = "Could you please help me with this task?";
330286
float score = fossil_io_soap_politeness_score(input);
@@ -363,19 +319,12 @@ FOSSIL_TEST_GROUP(c_soap_tests) {
363319
FOSSIL_TEST_ADD(c_soap_suite, c_test_io_soap_normalize_informal);
364320
FOSSIL_TEST_ADD(c_soap_suite, c_test_io_soap_detect_sentiment_positive);
365321
FOSSIL_TEST_ADD(c_soap_suite, c_test_io_soap_detect_sentiment_negative);
366-
FOSSIL_TEST_ADD(c_soap_suite, c_test_io_soap_detect_harmful_true);
367-
FOSSIL_TEST_ADD(c_soap_suite, c_test_io_soap_detect_harmful_false);
368322
FOSSIL_TEST_ADD(c_soap_suite, c_test_io_soap_normalize_slang_basic);
369-
FOSSIL_TEST_ADD(c_soap_suite, c_test_io_soap_correct_grammar_common);
370-
FOSSIL_TEST_ADD(c_soap_suite, c_test_io_soap_evaluate_readability_score);
371323
FOSSIL_TEST_ADD(c_soap_suite, c_test_io_soap_detect_exaggeration_true);
372324
FOSSIL_TEST_ADD(c_soap_suite, c_test_io_soap_detect_exaggeration_false);
373325
FOSSIL_TEST_ADD(c_soap_suite, c_test_io_soap_filter_offensive_basic);
374326
FOSSIL_TEST_ADD(c_soap_suite, c_test_io_soap_detect_clickbait_true);
375327
FOSSIL_TEST_ADD(c_soap_suite, c_test_io_soap_detect_clickbait_false);
376-
FOSSIL_TEST_ADD(c_soap_suite, c_test_io_soap_detect_fallacy_ad_hominem);
377-
FOSSIL_TEST_ADD(c_soap_suite, c_test_io_soap_detect_fallacy_none);
378-
FOSSIL_TEST_ADD(c_soap_suite, c_test_io_soap_summarize_simple);
379328
FOSSIL_TEST_ADD(c_soap_suite, c_test_io_soap_politeness_score_range);
380329

381330
FOSSIL_TEST_REGISTER(c_soap_suite);

0 commit comments

Comments
 (0)