diff options
author | David Robillard <d@drobilla.net> | 2010-01-07 21:27:39 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-01-07 21:27:39 +0000 |
commit | 0d009a4e980e40dc8a9c9b5e3d25c3fafb363e95 (patch) | |
tree | 4d41dea009f1647519af8df10f114cd7a6165792 /tests/quantize_test.cpp | |
parent | 61ac4a41f0aea63f45d7b27be3ef2e0554e93ece (diff) | |
download | raul-0d009a4e980e40dc8a9c9b5e3d25c3fafb363e95.tar.gz raul-0d009a4e980e40dc8a9c9b5e3d25c3fafb363e95.tar.bz2 raul-0d009a4e980e40dc8a9c9b5e3d25c3fafb363e95.zip |
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
Diffstat (limited to 'tests/quantize_test.cpp')
-rw-r--r-- | tests/quantize_test.cpp | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/quantize_test.cpp b/tests/quantize_test.cpp deleted file mode 100644 index cc10505..0000000 --- a/tests/quantize_test.cpp +++ /dev/null @@ -1,31 +0,0 @@ -#include "raul/Quantizer.hpp" -#include <iostream> - -using namespace std; -using namespace Raul; - - -int -main() -{ - double in = 0; - - cout << "Quantization: "; - cin >> in; - cout << endl; - - TimeStamp q(TimeUnit(TimeUnit::BEATS, 19200), in); - - while (true) { - cout << "Beats: "; - cin >> in; - - TimeStamp beats(TimeUnit(TimeUnit::BEATS, 19200), in); - - cout << "Quantized: "; - cout << Quantizer::quantize(q, beats) << endl << endl; - } - - return 0; -} - |