/** ** Copyright (c) 2007-2010 Illumina, Inc. ** ** This software is covered by the "Illumina Genome Analyzer Software ** License Agreement" and the "Illumina Source Code License Agreement", ** and certain third party copyright/licenses, and any user of this ** source file is bound by the terms therein (see accompanying files ** Illumina_Genome_Analyzer_Software_License_Agreement.pdf and ** Illumina_Source_Code_License_Agreement.pdf and third party ** copyright/license notices). ** ** This file is part of the Consensus Assessment of Sequence And VAriation ** (CASAVA) software package. ** **/ #ifndef TEST_FAST_IO #define TEST_FAST_IO #include #include #include "common/FastIo.hh" class TestFastIo : public CppUnit::TestFixture { CPPUNIT_TEST_SUITE( TestFastIo ); CPPUNIT_TEST( testSprintFloatZeros ); CPPUNIT_TEST( testSprintFloatZerosPadding ); CPPUNIT_TEST( testSprintFloatSmallPositive ); CPPUNIT_TEST( testSprintFloatSmallNegative ); CPPUNIT_TEST( testSprintFloatMediumPositive ); CPPUNIT_TEST( testSprintFloatMediumNegative ); CPPUNIT_TEST( testSprintFloatLargePositive ); CPPUNIT_TEST( testSprintFloatLargeNegative ); CPPUNIT_TEST( testPutUnsignedInteger ); CPPUNIT_TEST( testPutInteger ); CPPUNIT_TEST( testGetUnsignedInteger ); CPPUNIT_TEST( testGetInteger ); CPPUNIT_TEST( testBoolIo ); CPPUNIT_TEST_SUITE_END(); private: static const unsigned int BUFFER_SIZE = 1024; char buffer_[BUFFER_SIZE+1]; public: void setUp(); void tearDown(); void testSprintFloatZeros(); void testSprintFloatZerosPadding(); void testSprintFloatSmallPositive(); void testSprintFloatSmallNegative(); void testSprintFloatMediumPositive(); void testSprintFloatMediumNegative(); void testSprintFloatLargePositive(); void testSprintFloatLargeNegative(); void testPutUnsignedInteger(); void testPutInteger(); void testGetUnsignedInteger(); void testGetInteger(); void testBoolIo(); }; #endif // #ifndef TEST_FAST_IO