1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 08:43:27 +00:00

(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

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;
}