00001 // Copyright (C) Calum Grant 2008 00002 00003 #include <cassert> 00004 00005 #define assert_throws(Ex, Stmt) try { Stmt; assert(0&&"Exception not thrown"); } catch(Ex) { } catch(...) { assert(0&&"Unknown exception thrown"); } 00006 00007 #undef NDEBUG 00008 00009 #define assert_not_supported(Stmt) assert_throws(dynamic::not_supported, Stmt); 00010 00011 void test_default_container(var); 00012 void test_default_iterator(var); 00013 void test_default_assignment(var); 00014 void test_default_operators(var); 00015 bool lex_equal(const var & v1, const var & v2); 00016 void test_pickle(const var & v); 00017 void test_lex_pickle(var v); 00018 void test_container_basics(var c); 00019 void assert_sequence_equals(var s0, var s1); 00020 00021 00022 // Tests 00023 00025 00026 void test_native(); 00027 00028 void test_stream(); 00029 00031 00032 void test_gc(); 00033 00035 00036 void test_global(); 00037 00039 00040 void test_files(); 00041 00043 00044 void test_foreach(); 00045 00047 00048 void test_exception(); 00049 00051 00052 void test_stack_trace(); 00053 00055 00056 void test_tls(); 00057 00059 00061 void test_heap(); 00062 00064 00068 void test_queue(); 00069 00071 00074 void test_threads(); 00075 00077 00081 void test_proxy(); 00082 00084 00087 void test_inheritance(); 00088 00090 00091 void test_attributes(); 00092 00094 00095 void test_attribute_operators(); 00096 00098 00100 void test_erase_attribute(); 00101 00103 00108 void test_methods(); 00109 00111 00112 void test_instantiate(); 00113 00115 00116 void test_function(); 00117 00119 00120 void test_void_methods(); 00121 00123 00124 void test_bind(); 00125 00127 00128 void test_extend(); 00129 00131 00132 void test_varargs(); 00133 00135 00136 void test_pickle_object(); 00137 00139 00140 void test_string_container(); 00141 00143 00144 void test_op_lt(); 00145 00147 00149 void test_object_container(); 00150 00152 00153 void test_array(); 00154 00156 00157 void test_comma_lists(); 00158 00160 00161 void test_list(); 00162 00164 00165 void test_map(); 00166 00168 00169 void test_set(); 00170 00172 00173 void test_reverse(); 00174 00176 00177 void test_sequence(); 00178 00180 00181 void test_null(); 00182 00184 00185 void test_bool(); 00186 00188 00189 void test_ch(); 00190 00192 00193 void test_int(); 00194 00196 00197 void test_double(); 00198 00200 00201 void test_string(); 00202 00204 00205 void test_test_framework(); 00206 00207 void test_named_functor(); 00208 00210 00211 void test_dispatcher(); 00212 00214 00215 void test_filter(); 00216 00218 00219 void test_transform(); 00220 00222 00223 void test_scopeguard(); 00224 00226 00227 void test_tail(); 00228 00230 00231 void test_string_functions(); 00232 00234 00235 void test_libs();
1.5.7.1