Lines Matching refs:numbers
250 int * numbers;
252 numbers = tr_parseNumberRange( "1-10,13,16-19", -1, &count );
254 check_int_eq( 1, numbers[0] );
255 check_int_eq( 6, numbers[5] );
256 check_int_eq( 10, numbers[9] );
257 check_int_eq( 13, numbers[10] );
258 check_int_eq( 16, numbers[11] );
259 check_int_eq( 19, numbers[14] );
260 tr_free( numbers );
262 numbers = tr_parseNumberRange( "1-5,3-7,2-6", -1, &count );
264 check( numbers != NULL );
266 check_int_eq (i+1, numbers[i]);
267 tr_free( numbers );
269 numbers = tr_parseNumberRange( "1-Hello", -1, &count );
271 check( numbers == NULL );
273 numbers = tr_parseNumberRange( "1-", -1, &count );
275 check( numbers == NULL );
277 numbers = tr_parseNumberRange( "Hello", -1, &count );
279 check( numbers == NULL );