diff options
| author | Jasper van de Gronde <jasper.vandegronde@gmail.com> | 2008-07-19 11:25:01 +0000 |
|---|---|---|
| committer | jaspervdg <jaspervdg@users.sourceforge.net> | 2008-07-19 11:25:01 +0000 |
| commit | 99809be7014844debfe1f11b4987716dea39f919 (patch) | |
| tree | f848f554c1e5e49bc715bd565415f342ee961b5a /src/svg/stringstream-test.h | |
| parent | Exclude the right(!) files when building the library (forgot to remove the ob... (diff) | |
| download | inkscape-99809be7014844debfe1f11b4987716dea39f919.tar.gz inkscape-99809be7014844debfe1f11b4987716dea39f919.zip | |
Consistently use (create/destroy)Suite in unit tests.
(bzr r6362)
Diffstat (limited to 'src/svg/stringstream-test.h')
| -rw-r--r-- | src/svg/stringstream-test.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/svg/stringstream-test.h b/src/svg/stringstream-test.h index a8da13150..d1a041721 100644 --- a/src/svg/stringstream-test.h +++ b/src/svg/stringstream-test.h @@ -21,6 +21,12 @@ svg_test_float(float const x, std::string const &exp_str) class StringStreamTest : public CxxTest::TestSuite { public: + +// createSuite and destroySuite get us per-suite setup and teardown +// without us having to worry about static initialization order, etc. + static StringStreamTest *createSuite() { return new StringStreamTest(); } + static void destroySuite( StringStreamTest *suite ) { delete suite; } + void testFloats() { svg_test_float(4.5, "4.5"); |
