From 0d009a4e980e40dc8a9c9b5e3d25c3fafb363e95 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 7 Jan 2010 21:27:39 +0000 Subject: Move unit testing and coverage framework into autowaf. Make raul tests return 0 on success, 1 on failure. Test coverage for Raul. git-svn-id: http://svn.drobilla.net/lad/trunk/raul@2368 a436a847-0d15-0410-975c-d299462d15a1 --- tests/time_test.cpp | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 tests/time_test.cpp (limited to 'tests/time_test.cpp') diff --git a/tests/time_test.cpp b/tests/time_test.cpp deleted file mode 100644 index 2b53207..0000000 --- a/tests/time_test.cpp +++ /dev/null @@ -1,32 +0,0 @@ -#include "raul/TimeStamp.hpp" -#include "raul/TimeSlice.hpp" -#include - -using namespace std; -using namespace Raul; - - -int -main() -{ - TimeUnit unit(TimeUnit::BEATS, 19200); - TimeSlice ts(48000, 19200, 120.0); - - double in_double; - cout << "Beats: "; - cin >> in_double; - - TimeStamp t(unit, (uint32_t)in_double, - (uint32_t)((in_double - (uint32_t)in_double) * unit.ppt())); - - cout << "\tSeconds: "; - cout << ts.beats_to_seconds(t); - cout << endl; - - cout << "\tTicks: "; - cout << ts.beats_to_ticks(t); - cout << endl; - - return 0; -} - -- cgit v1.2.1