diff options
author | Johannes Schickel | 2010-01-05 22:00:38 +0000 |
---|---|---|
committer | Johannes Schickel | 2010-01-05 22:00:38 +0000 |
commit | 664ace90e7e735ff33142664f9c1d3424f8383b2 (patch) | |
tree | 70c1bd497c97aa75eafb1eebc41838996d4d1c22 /test | |
parent | 2d3a06f8051d2f68d1d29e0ebf2ae83eac6f17fe (diff) | |
download | scummvm-rg350-664ace90e7e735ff33142664f9c1d3424f8383b2.tar.gz scummvm-rg350-664ace90e7e735ff33142664f9c1d3424f8383b2.tar.bz2 scummvm-rg350-664ace90e7e735ff33142664f9c1d3424f8383b2.zip |
Add some test for operator== in Timestamp.
svn-id: r47053
Diffstat (limited to 'test')
-rw-r--r-- | test/sound/timestamp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/sound/timestamp.h b/test/sound/timestamp.h index dccf67399c..4945a18f88 100644 --- a/test/sound/timestamp.h +++ b/test/sound/timestamp.h @@ -84,4 +84,11 @@ class TimestampTestSuite : public CxxTest::TestSuite TS_ASSERT_EQUALS(a.convertToFramerate(1000/5), b); TS_ASSERT_EQUALS(a.convertToFramerate(1000*2), c); } + + void test_equals() { + const Audio::Timestamp a = Audio::Timestamp(500, 1000); + const Audio::Timestamp b = Audio::Timestamp(0, 1000).addFrames(500); + + TS_ASSERT(a == b); + } }; |