diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/atom_test.cpp | 1 | ||||
-rw-r--r-- | test/list_test.cpp | 1 | ||||
-rw-r--r-- | test/quantize_test.cpp | 1 | ||||
-rw-r--r-- | test/queue_test.cpp | 9 | ||||
-rw-r--r-- | test/smf_test.cpp | 2 | ||||
-rw-r--r-- | test/table_test.cpp | 6 | ||||
-rw-r--r-- | test/time_test.cpp | 1 |
7 files changed, 0 insertions, 21 deletions
diff --git a/test/atom_test.cpp b/test/atom_test.cpp index 5174600..66bc79e 100644 --- a/test/atom_test.cpp +++ b/test/atom_test.cpp @@ -9,7 +9,6 @@ main() static const size_t buf_size = 9; char buf[buf_size] = "atomtest"; - Atom nil_atom(); Atom int_atom(42); Atom float_atom(42.0f); diff --git a/test/list_test.cpp b/test/list_test.cpp index e6b6641..4e0f45f 100644 --- a/test/list_test.cpp +++ b/test/list_test.cpp @@ -124,7 +124,6 @@ main() CHECK(*i == idx + 1); } - // Appending an empty list l2.clear(); l.append(l2); diff --git a/test/quantize_test.cpp b/test/quantize_test.cpp index a3c30de..9d7e539 100644 --- a/test/quantize_test.cpp +++ b/test/quantize_test.cpp @@ -4,7 +4,6 @@ using namespace std; using namespace Raul; - int main() { diff --git a/test/queue_test.cpp b/test/queue_test.cpp index 5c2209b..195f763 100644 --- a/test/queue_test.cpp +++ b/test/queue_test.cpp @@ -27,7 +27,6 @@ struct Record { Record data[NUM_DATA]; - // Actions pumped through the queue to manipulate data struct WriteAction { WriteAction(unsigned idx) : index(idx) {} @@ -39,11 +38,9 @@ struct WriteAction { unsigned index; }; - // The victim SRMWQueue<WriteAction> queue(QUEUE_SIZE); - class WriteThread : public Thread { protected: void _run() { @@ -67,7 +64,6 @@ protected: } }; - // Returns 0 if all read count/write count pairs are equal, // otherwise how far off total count was unsigned @@ -82,7 +78,6 @@ data_is_sane() return ret; } - void dump_data() { @@ -96,7 +91,6 @@ dump_data() } } - int main() { @@ -177,7 +171,6 @@ main() if (leftovers > 0) cout << "Processed " << leftovers << " leftovers." << endl; - //cout << "\n\n*********************************************\n\n"; cout << "Total processed: " << total_processed << endl; @@ -186,7 +179,6 @@ main() else cout << "(Counter did NOT have to wrap)" << endl; - const unsigned diff = data_is_sane(); if (diff == 0) { @@ -201,7 +193,6 @@ main() return 0; } - #if 0 int main() { diff --git a/test/smf_test.cpp b/test/smf_test.cpp index e848f15..bc9b756 100644 --- a/test/smf_test.cpp +++ b/test/smf_test.cpp @@ -7,7 +7,6 @@ using namespace std; using namespace Raul; - int main(int argc, char** argv) { @@ -30,7 +29,6 @@ main(int argc, char** argv) filename = argv[1]; } - SMFReader reader; bool opened = reader.open(filename); diff --git a/test/table_test.cpp b/test/table_test.cpp index 5d370fd..1bb33d0 100644 --- a/test/table_test.cpp +++ b/test/table_test.cpp @@ -224,7 +224,6 @@ random_string() return ret; } - void benchmark(size_t n) { @@ -246,7 +245,6 @@ benchmark(size_t n) t2.tv_sec=0; t2.tv_usec=0; - /** std::map **/ std::map<string,int> m; @@ -273,7 +271,6 @@ benchmark(size_t n) cout << "std::map time to lookup " << n << " values: \t" << delta_t << endl; - /** std::set **/ std::set<std::string> s; @@ -300,7 +297,6 @@ benchmark(size_t n) cout << "std::set time to lookup " << n << " values: \t" << delta_t << endl; - /** sorted std::vector **/ /*std::vector<int> v; @@ -329,7 +325,6 @@ benchmark(size_t n) cout << "std::vector (sorted) time to lookup " << n << " values: \t" << delta_t << endl;*/ - /** Raul::Table **/ Raul::Table<string,int> t(n); @@ -356,7 +351,6 @@ benchmark(size_t n) cout << "Raul::Table time to lookup " << n << " values: \t" << delta_t << endl; - #ifdef WITH_TR1 /** boost::hash && std::unordered_map **/ diff --git a/test/time_test.cpp b/test/time_test.cpp index b48e3f1..d7b6d81 100644 --- a/test/time_test.cpp +++ b/test/time_test.cpp @@ -5,7 +5,6 @@ using namespace std; using namespace Raul; - int main() { |