@@ -115,18 +115,6 @@ static void test_igetstr(CuTest * tc)
115
115
CuAssertStrEquals (tc , "derp" , igetstr (0 ));
116
116
}
117
117
118
- static void test_cont (CuTest * tc )
119
- {
120
- mock_input ("a line\\\n continued\n" );
121
- CuAssertStrEquals (tc , "a linecontinued" , getbuf ());
122
- mock_input ("a line \\\ncontinued\n" );
123
- CuAssertStrEquals (tc , "a line continued" , getbuf ());
124
- mock_input ("a \"string \\\ncontinued\"\n" );
125
- CuAssertStrEquals (tc , "a string~continued" , getbuf ());
126
- mock_input ("a \" \\\nstring continued \"\n" );
127
- CuAssertStrEquals (tc , "a string~continued" , getbuf ());
128
- }
129
-
130
118
static void test_give_each (CuTest * tc )
131
119
{
132
120
set_order_unit (newunit (1 , 0 ));
@@ -224,33 +212,6 @@ static void test_check_additional_parameters(CuTest *tc)
224
212
225
213
}
226
214
227
- static void test_check_quotes (CuTest * tc )
228
- {
229
- test_orders (tc , "MACHE 1 Rostiges~Kettenhemd" , 0 , 0 );
230
- test_orders (tc , "MACHE 2 \" Rostiges Kettenhemd \"" , 0 , 0 );
231
- test_orders (tc , "MACHE 3 'Rostiges Kettenhemd'" , 0 , 0 );
232
- test_orders (tc , "MACHE 4 \"Rostiges Kettenhemd'" , 0 , 2 );
233
- test_orders (tc , "MACHE 5 'Rostiges Kettenhemd\"" , 0 , 2 );
234
- test_orders (tc , "MACHE 6 \"Rostiges~Kettenhemd\"" , 0 , 0 );
235
-
236
- test_orders (tc , "DEFAULT \"ARBEITE\"" , 0 , 0 );
237
- test_orders (tc , "DEFAULT 'ARBEITE'" , 0 , 0 );
238
- test_orders (tc , "DEFAULT ARBEITE" , 0 , 0 );
239
-
240
- test_orders (tc , "DEFAULT 'MACHE 1 Schwert'" , 0 , 0 );
241
- test_orders (tc , "DEFAULT \"MACHE 2 Schwert\"" , 0 , 0 );
242
- // currently not working
243
- // test_orders(tc, "DEFAULT \"MACHE 3 'Rostiges Kettenhemd'\"", 0);
244
- // test_orders(tc, "DEFAULT \"MACHE 4 Rostiges~Kettenhemd\"", 0);
245
- // test_orders(tc, "DEFAULT \"MACHE 5 'Rostiges~Kettenhemd'\"", 0);
246
- // test_orders(tc, "DEFAULT 'MACHE 6 \"Rostiges Kettenhemd\"', 0);
247
-
248
- test_orders (tc , "BENENNE EINHEIT \"a \\\"nice\\\" name\"" , 0 , 0 );
249
- test_orders (tc , "BENENNE EINHEIT 'parser\\'s nightmare'" , 0 , 0 );
250
- test_orders (tc , "BENENNE EINHEIT \"parser\\'s nightmare\"" , 0 , 0 );
251
- test_orders (tc , "BENENNE EINHEIT \"parser\\\"s nightmare\"" , 0 , 0 );
252
- }
253
-
254
215
static void test_plant (CuTest * tc )
255
216
{
256
217
test_orders (tc , "PFLANZE KRÄUTER" , 0 , 0 );
@@ -318,7 +279,6 @@ int AddTestSuites(CuSuite * suite, const char * args)
318
279
cs = CuSuiteNew ();
319
280
SUITE_ADD_TEST (cs , test_getbuf );
320
281
SUITE_ADD_TEST (cs , test_igetstr );
321
- SUITE_ADD_TEST (cs , test_cont );
322
282
SUITE_ADD_TEST (cs , test_nothing );
323
283
CuSuiteAddSuite (suite , cs );
324
284
}
@@ -363,8 +323,6 @@ int AddTestSuites(CuSuite * suite, const char * args)
363
323
cs = CuSuiteNew ();
364
324
SUITE_ADD_TEST (cs , test_check_additional_parameters );
365
325
SUITE_ADD_TEST (cs , test_origin );
366
- SUITE_ADD_TEST (cs , test_check_quotes );
367
- SUITE_ADD_TEST (cs , test_language );
368
326
CuSuiteAddSuite (suite , cs );
369
327
}
370
328
name = strtok (0 , "," );
0 commit comments