[Scummvm-cvs-logs] SF.net SVN: scummvm:[47053] scummvm/trunk/test/sound/timestamp.h
lordhoto at users.sourceforge.net
lordhoto at users.sourceforge.net
Tue Jan 5 23:00:38 CET 2010
Revision: 47053
http://scummvm.svn.sourceforge.net/scummvm/?rev=47053&view=rev
Author: lordhoto
Date: 2010-01-05 22:00:38 +0000 (Tue, 05 Jan 2010)
Log Message:
-----------
Add some test for operator== in Timestamp.
Modified Paths:
--------------
scummvm/trunk/test/sound/timestamp.h
Modified: scummvm/trunk/test/sound/timestamp.h
===================================================================
--- scummvm/trunk/test/sound/timestamp.h 2010-01-05 22:00:06 UTC (rev 47052)
+++ scummvm/trunk/test/sound/timestamp.h 2010-01-05 22:00:38 UTC (rev 47053)
@@ -84,4 +84,11 @@
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);
+ }
};
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list