int main() { plan(20); test_uints(); test_ints(); test_bools(); test_floats(); test_doubles(); test_nils(); test_strls(); test_binls(); test_strs(); test_bins(); test_arrays(); test_maps(); test_next_on_arrays(); test_next_on_maps(); test_compare_uints(); test_format(); test_mp_print(); test_mp_check(); test_numbers(); test_overflow(); return check_plan(); }
static void test_variables( libvlc_instance_t *p_vlc ) { libvlc_int_t *p_libvlc = p_vlc->p_libvlc_int; srand( time( NULL ) ); log( "Testing for integers\n" ); test_integer( p_libvlc ); log( "Testing for booleans\n" ); test_booleans( p_libvlc ); log( "Testing for floats\n" ); test_floats( p_libvlc ); log( "Testing for strings\n" ); test_strings( p_libvlc ); log( "Testing for addresses\n" ); test_address( p_libvlc ); log( "Testing the callbacks\n" ); test_callbacks( p_libvlc ); log( "Testing the limits\n" ); test_limits( p_libvlc ); log( "Testing choices\n" ); test_choices( p_libvlc ); log( "Testing var_Change()\n" ); test_change( p_libvlc ); log( "Testing type at creation\n" ); test_creation_and_type( p_libvlc ); }
void TestJson_run_tests() { int num_tests = 107; #ifndef LUCY_VALGRIND num_tests += 28; // FIXME: syntax errors leak memory. #endif TestBatch *batch = TestBatch_new(num_tests); TestBatch_Plan(batch); // Test tolerance, then liberalize for testing. test_tolerance(batch); Json_set_tolerant(true); test_to_and_from(batch); test_escapes(batch); test_numbers(batch); test_spew_and_slurp(batch); test_integers(batch); test_floats(batch); test_max_depth(batch); test_illegal_keys(batch); #ifndef LUCY_VALGRIND test_syntax_errors(batch); #endif DECREF(batch); }
int main(int argc, char** argv) { test_floats(); test_doubles(); // test_enu_of_ecef_int(); // test_ned_to_ecef_to_ned(); // test_enu_to_ecef_to_enu(); return 0; }
uint32_t start (void) { int i; uint32_t reg = 0x5B5AB714; for (i = 0; i < 6; i++) { reg = next(reg); uint_x[i] = reg; reg = next(reg); uint_y[i] = reg; } for (i = 0; i < 6; i++) { reg = next(reg); uint16_t_x[i] = reg; reg = next(reg); uint16_t_y[i] = reg; } i = 0; float_x[i++] = 0.055237; float_x[i++] = 0.615051; float_x[i++] = -1.964783; float_x[i++] = 0.054016; float_x[i++] = 0.800354; float_x[i++] = 1.106262; i = 0; float_y[i++] = -0.324402; float_y[i++] = -1.755798; float_y[i++] = 1.130188; float_y[i++] = -0.162537; float_y[i++] = 0.073059; float_y[i++] = 0.309631; return test_ints() ^ (uint32_t)test_floats() ^ test_uint16_ts(); }
int main() { plan(15); test_uints(); test_ints(); test_bools(); test_floats(); test_doubles(); test_nils(); test_strls(); test_binls(); test_strs(); test_bins(); test_arrays(); test_maps(); test_next_on_arrays(); test_next_on_maps(); test_compare_uints(); return check_plan(); }
void TestJson_Run_IMP(TestJson *self, TestBatchRunner *runner) { uint32_t num_tests = 105; #ifndef LUCY_VALGRIND num_tests += 28; // FIXME: syntax errors leak memory. #endif TestBatchRunner_Plan(runner, (TestBatch*)self, num_tests); // Test tolerance, then liberalize for testing. test_tolerance(runner); Json_set_tolerant(true); test_to_and_from(runner); test_escapes(runner); test_numbers(runner); test_spew_and_slurp(runner); test_integers(runner); test_floats(runner); test_max_depth(runner); #ifndef LUCY_VALGRIND test_syntax_errors(runner); #endif }