Home | History | Annotate | Download | only in unit

Lines Matching full:is_rational

331 int is_rational(_Type) {
340 CPPUNIT_ASSERT( is_rational(bool()) == 0 );
341 CPPUNIT_ASSERT( is_rational(char()) == 0 );
343 CPPUNIT_ASSERT( is_rational(signed_char()) == 0 );
345 CPPUNIT_ASSERT( is_rational(unsigned_char()) == 0 );
347 CPPUNIT_ASSERT( is_rational(wchar_t()) == 0 );
349 CPPUNIT_ASSERT( is_rational(short()) == 0 );
351 CPPUNIT_ASSERT( is_rational(unsigned_short()) == 0 );
352 CPPUNIT_ASSERT( is_rational(int()) == 0 );
354 CPPUNIT_ASSERT( is_rational(unsigned_int()) == 0 );
355 CPPUNIT_ASSERT( is_rational(long()) == 0 );
357 CPPUNIT_ASSERT( is_rational(unsigned_long()) == 0 );
360 CPPUNIT_ASSERT( is_rational(long_long()) == 0 );
362 CPPUNIT_ASSERT( is_rational(unsigned_long_long()) == 0 );
364 CPPUNIT_ASSERT( is_rational(float()) == 1 );
365 CPPUNIT_ASSERT( is_rational(double()) == 1 );
368 CPPUNIT_ASSERT( is_rational(long_double()) == 1 );
370 CPPUNIT_ASSERT( is_rational(any) == 0 );
371 CPPUNIT_ASSERT( is_rational(any_pointer) == 0 );