@@ -215,89 +215,6 @@ FOSSIL_TEST(c_test_io_soap_suggest_with_tabs) {
215
215
free (result );
216
216
}
217
217
218
- FOSSIL_TEST (c_test_io_soap_detect_sentiment_positive ) {
219
- const char * input = "I love this product!" ;
220
- const char * expected = "positive" ;
221
- const char * result = fossil_io_soap_detect_sentiment (input );
222
- ASSUME_ITS_EQUAL_CSTR (expected , result );
223
- }
224
-
225
- FOSSIL_TEST (c_test_io_soap_detect_sentiment_negative ) {
226
- const char * input = "This is the worst idea ever." ;
227
- const char * expected = "negative" ;
228
- const char * result = fossil_io_soap_detect_sentiment (input );
229
- ASSUME_ITS_EQUAL_CSTR (expected , result );
230
- }
231
-
232
- FOSSIL_TEST (c_test_io_soap_detect_sentiment_neutral ) {
233
- const char * input = "It is a pencil." ;
234
- const char * expected = "neutral" ;
235
- const char * result = fossil_io_soap_detect_sentiment (input );
236
- ASSUME_ITS_EQUAL_CSTR (expected , result );
237
- }
238
-
239
- FOSSIL_TEST (c_test_io_soap_detect_harmful_content ) {
240
- const char * input = "You are worthless." ;
241
- int result = fossil_io_soap_detect_harmful_content (input );
242
- ASSUME_ITS_EQUAL_I32 (1 , result );
243
- }
244
-
245
- FOSSIL_TEST (c_test_io_soap_normalize_slang ) {
246
- const char * input = "brb, ttyl!" ;
247
- const char * expected = "be right back, talk to you later!" ;
248
- char * result = fossil_io_soap_normalize_slang (input );
249
- ASSUME_ITS_EQUAL_CSTR (expected , result );
250
- free (result );
251
- }
252
-
253
- FOSSIL_TEST (c_test_io_soap_correct_grammar ) {
254
- const char * input = "should of gone there" ;
255
- const char * expected = "should have gone there" ;
256
- char * result = fossil_io_soap_correct_grammar (input );
257
- ASSUME_ITS_EQUAL_CSTR (expected , result );
258
- free (result );
259
- }
260
-
261
- FOSSIL_TEST (c_test_io_soap_filter_offensive ) {
262
- const char * input = "You are such an idiot." ;
263
- const char * expected = "You are such an ***." ;
264
- char * result = fossil_io_soap_filter_offensive (input );
265
- ASSUME_ITS_EQUAL_CSTR (expected , result );
266
- free (result );
267
- }
268
-
269
- FOSSIL_TEST (c_test_io_soap_detect_clickbait ) {
270
- const char * input = "You won't believe what happened next!" ;
271
- int result = fossil_io_soap_detect_clickbait (input );
272
- ASSUME_ITS_EQUAL_I32 (1 , result );
273
- }
274
-
275
- FOSSIL_TEST (c_test_io_soap_detect_exaggeration ) {
276
- const char * input = "This is the greatest thing in the entire universe!" ;
277
- int result = fossil_io_soap_detect_exaggeration (input );
278
- ASSUME_ITS_EQUAL_I32 (1 , result );
279
- }
280
-
281
- FOSSIL_TEST (c_test_io_soap_detect_fallacy ) {
282
- const char * input = "If we allow A, then B, C, and D will also happen!" ;
283
- const char * expected = "slippery slope" ; // assuming this is detected
284
- const char * result = fossil_io_soap_detect_fallacy (input );
285
- ASSUME_ITS_EQUAL_CSTR (expected , result );
286
- }
287
-
288
- FOSSIL_TEST (c_test_io_soap_summarize ) {
289
- const char * input = "Although the product has some flaws, it is still worth buying because of its affordability." ;
290
- const char * expected = "affordable despite some flaws" ; // approximate key meaning
291
-
292
- char * result = fossil_io_soap_summarize (input );
293
- ASSUME_ITS_TRUE (result != NULL );
294
-
295
- // Check if expected meaning is included in the result
296
- ASSUME_ITS_TRUE (strstr (result , expected ) != NULL );
297
-
298
- free (result );
299
- }
300
-
301
218
// * * * * * * * * * * * * * * * * * * * * * * * *
302
219
// * Fossil Logic Test Pool
303
220
// * * * * * * * * * * * * * * * * * * * * * * * *
@@ -325,17 +242,6 @@ FOSSIL_TEST_GROUP(c_soap_tests) {
325
242
FOSSIL_TEST_ADD (c_soap_suite , c_test_io_soap_suggest_with_special_chars );
326
243
FOSSIL_TEST_ADD (c_soap_suite , c_test_io_soap_suggest_with_newlines );
327
244
FOSSIL_TEST_ADD (c_soap_suite , c_test_io_soap_suggest_with_tabs );
328
- FOSSIL_TEST_ADD (c_soap_suite , c_test_io_soap_detect_sentiment_positive );
329
- FOSSIL_TEST_ADD (c_soap_suite , c_test_io_soap_detect_sentiment_negative );
330
- FOSSIL_TEST_ADD (c_soap_suite , c_test_io_soap_detect_sentiment_neutral );
331
- FOSSIL_TEST_ADD (c_soap_suite , c_test_io_soap_detect_harmful_content );
332
- FOSSIL_TEST_ADD (c_soap_suite , c_test_io_soap_normalize_slang );
333
- FOSSIL_TEST_ADD (c_soap_suite , c_test_io_soap_correct_grammar );
334
- FOSSIL_TEST_ADD (c_soap_suite , c_test_io_soap_filter_offensive );
335
- FOSSIL_TEST_ADD (c_soap_suite , c_test_io_soap_detect_clickbait );
336
- FOSSIL_TEST_ADD (c_soap_suite , c_test_io_soap_detect_exaggeration );
337
- FOSSIL_TEST_ADD (c_soap_suite , c_test_io_soap_detect_fallacy );
338
- FOSSIL_TEST_ADD (c_soap_suite , c_test_io_soap_summarize );
339
245
340
246
FOSSIL_TEST_REGISTER (c_soap_suite );
341
247
}
0 commit comments