reduce failing test to less code

This commit is contained in:
Enno Rehling 2015-10-17 11:10:45 +02:00 committed by Enno Rehling
parent 8aec1c3e7f
commit 24c877d974
1 changed files with 0 additions and 7 deletions

View File

@ -52,17 +52,10 @@ static void test_directions(CuTest * tc)
variant id;
int result;
id.i = 1;
addtoken(&tokens, "OSTEN", id);
addtoken(&tokens, "O", id);
id.i = 2;
addtoken(&tokens, "nw", id);
addtoken(&tokens, "northwest", id);
result = findtoken(tokens, "ost", &id);
CuAssertIntEquals(tc, E_TOK_SUCCESS, result);
CuAssertIntEquals(tc, 1, id.i);
result = findtoken(tokens, "northw", &id);
CuAssertIntEquals(tc, E_TOK_SUCCESS, result);
CuAssertIntEquals(tc, 2, id.i);