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:
parent
f3460eaea0
commit
97d992bba0
1 changed files with 3 additions and 0 deletions
|
@ -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 a new issue