(trunk libT) add a new unit test for tr_truncd(2.05)
This commit is contained in:
parent
f3460eaea0
commit
97d992bba0
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue