Files
UltraGrid/test/misc_test.hpp
Martin Pulec f62e04d15f fixed replace_all()
In response to Coverity CID 383367 - it is perhaps false positive but
there has been another small bug - the step should be length of to, not
from (which may be longer).

+ written a test for it
2022-02-21 15:32:00 +01:00

22 lines
492 B
C++

#ifndef MISC_TEST_HPP_85A3153C_9322_11EC_B6F6_F0DEF1A0ACC9
#define MISC_TEST_HPP_85A3153C_9322_11EC_B6F6_F0DEF1A0ACC9
#include <cppunit/extensions/HelperMacros.h>
class misc_test : public CPPUNIT_NS::TestFixture
{
CPPUNIT_TEST_SUITE( misc_test );
CPPUNIT_TEST( test_replace_all );
CPPUNIT_TEST_SUITE_END();
public:
misc_test();
~misc_test();
void setUp();
void tearDown();
void test_replace_all();
};
#endif // !defined MISC_TEST_HPP_85A3153C_9322_11EC_B6F6_F0DEF1A0ACC9