aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohannes Schickel2010-01-05 22:00:38 +0000
committerJohannes Schickel2010-01-05 22:00:38 +0000
commit664ace90e7e735ff33142664f9c1d3424f8383b2 (patch)
tree70c1bd497c97aa75eafb1eebc41838996d4d1c22 /test
parent2d3a06f8051d2f68d1d29e0ebf2ae83eac6f17fe (diff)
downloadscummvm-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.h7
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);
+ }
};