@@ -71,8 +71,8 @@ FOSSIL_TEST_CASE(cpp_test_io_gets_from_stream_no_offensive) {
7171}
7272
7373FOSSIL_TEST_CASE (cpp_test_io_gets_from_stream_with_punctuation) {
74- char input[] = " This is a test with curse1 , and racist_phrase1 !\n " ;
75- char expected[] = " This is a test with *** , and *** !" ;
74+ char input[] = " This is a test with punctuation , and special characters !\n " ;
75+ char expected[] = " This is a test with punctuation , and special characters !" ;
7676 char buffer[256 ];
7777
7878 FILE *stream = tmpfile ();
@@ -255,15 +255,6 @@ FOSSIL_TEST_CASE(cpp_test_io_validate_is_length_invalid) {
255255 ASSUME_ITS_FALSE (result);
256256}
257257
258- FOSSIL_TEST_CASE (cpp_test_io_validate_sanitize_string) {
259- const char *input = " This is a test with curse1, and racist_phrase1!" ;
260- char expected[] = " This is a test with ***, and ***!" ;
261- char output[256 ];
262- int result = fossil_io_validate_sanitize_string (input, output, sizeof (output));
263- ASSUME_ITS_TRUE (result);
264- ASSUME_ITS_EQUAL_CSTR (expected, output);
265- }
266-
267258// * * * * * * * * * * * * * * * * * * * * * * * *
268259// * Fossil Logic Test Pool
269260// * * * * * * * * * * * * * * * * * * * * * * * *
@@ -290,7 +281,6 @@ FOSSIL_TEST_GROUP(cpp_input_tests) {
290281 FOSSIL_TEST_ADD (cpp_input_suite, cpp_test_io_validate_is_email_invalid);
291282 FOSSIL_TEST_ADD (cpp_input_suite, cpp_test_io_validate_is_length_valid);
292283 FOSSIL_TEST_ADD (cpp_input_suite, cpp_test_io_validate_is_length_invalid);
293- FOSSIL_TEST_ADD (cpp_input_suite, cpp_test_io_validate_sanitize_string);
294284
295285 FOSSIL_TEST_REGISTER (cpp_input_suite);
296286}
0 commit comments