(trunk libT) add a new unit test for tr_truncd(2.05)

This commit is contained in:
Charles Kerr 2010-10-17 18:29:36 +00:00
parent f3460eaea0
commit 97d992bba0
1 changed files with 3 additions and 0 deletions

View File

@ -392,6 +392,9 @@ test_truncd( void )
tr_snprintf( buf, sizeof( buf ), "%.2f", tr_truncd( 2.15, 2 ) );
check( !strcmp( buf, "2.15" ) );
tr_snprintf( buf, sizeof( buf ), "%.2f", tr_truncd( 2.05, 2 ) );
check( !strcmp( buf, "2.05" ) );
return 0;
}