aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohannes Schickel2010-01-06 20:24:56 +0000
committerJohannes Schickel2010-01-06 20:24:56 +0000
commitf32aeb01bfc905ce2fdbc5b2f79e6f91a3f7b769 (patch)
treea88dcb175f447267ab95ede8425f62a753beb2a1 /test
parentfc582c0e5975b0591268694fd02430504242b4a2 (diff)
downloadscummvm-rg350-f32aeb01bfc905ce2fdbc5b2f79e6f91a3f7b769.tar.gz
scummvm-rg350-f32aeb01bfc905ce2fdbc5b2f79e6f91a3f7b769.tar.bz2
scummvm-rg350-f32aeb01bfc905ce2fdbc5b2f79e6f91a3f7b769.zip
Add a constructor to Timestamp, which allows for specifying seconds + start frames directly.
svn-id: r47091
Diffstat (limited to 'test')
-rw-r--r--test/sound/timestamp.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/sound/timestamp.h b/test/sound/timestamp.h
index 6fc83480b4..0df459dc64 100644
--- a/test/sound/timestamp.h
+++ b/test/sound/timestamp.h
@@ -89,6 +89,8 @@ class TimestampTestSuite : public CxxTest::TestSuite
const Audio::Timestamp a = Audio::Timestamp(500, 1000);
Audio::Timestamp b = Audio::Timestamp(0, 1000);
Audio::Timestamp c = Audio::Timestamp(0, 100);
+
+ TS_ASSERT_EQUALS(a, Audio::Timestamp(0, 500, 1000));
TS_ASSERT(a != b);
TS_ASSERT(a != c);