diff options
author | Dave Davenport <qball@gmpclient.org> | 2016-04-10 13:55:18 +0200 |
---|---|---|
committer | Dave Davenport <qball@gmpclient.org> | 2016-04-10 13:55:18 +0200 |
commit | b63f8e22754148e859b2ebf463353abfb9a17dbe (patch) | |
tree | 0359b3dc84fdb30c1748d2822da36468dd4affe1 /test | |
parent | 93362d63f2446fe9d1968eccf0f119516da3bf3a (diff) |
Move history to getline and remove magic limit.
Diffstat (limited to 'test')
-rw-r--r-- | test/history-test.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/history-test.c b/test/history-test.c index b1480ec0..75c5d7ac 100644 --- a/test/history-test.c +++ b/test/history-test.c @@ -33,7 +33,6 @@ static void history_test ( void ) TASSERT ( retv != NULL ); TASSERT ( length == 1 ); - TASSERT ( strcmp ( retv[0], "aap" ) == 0 ); g_strfreev ( retv ); @@ -79,6 +78,12 @@ static void history_test ( void ) TASSERT ( retv != NULL ); TASSERT ( length == 25 ); + for ( unsigned int in = 0; in < 24; in++ ) { + char *p = g_strdup_printf ( "aap%i", in+2); + TASSERT ( g_strcmp0(retv[in], p) == 0); + + g_free ( p ); + } g_strfreev ( retv ); |