diff --git a/cast_test.cpp b/cast_test.cpp index 66ff462..1602f16 100644 --- a/cast_test.cpp +++ b/cast_test.cpp @@ -110,6 +110,10 @@ int main( int argc, char * argv[] ) c = numeric_cast( small_negative_value ); assert( c == -1 ); + // These tests courtesy of Joe R NWP Swatosh + assert( 0.0f == numeric_cast( 0.0 ) ); + assert( 0.0 == numeric_cast( 0.0 ) ); + // tests which should result in errors being detected caught_exception = false;