diff --git a/libtransmission/utils-test.c b/libtransmission/utils-test.c index 21e190389..d6363c690 100644 --- a/libtransmission/utils-test.c +++ b/libtransmission/utils-test.c @@ -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; }