void testObj::test<8>(void) { Vec v1; Vec v2; v2.push_back(5); testCmp(v1, v2, 0); }
void testObj::test<3>(void) { NEVec v1(5); v1.push_back(5); NEVec v2=v1; testCmp(v1, v2, 1); }
void testObj::test<7>(void) { Vec v1; v1.push_back(5); Vec v2; testCmp(v1, v2, 0); }
void testObj::test<2>(void) { Vec v1; v1.push_back(5); v1.push_back(5); Vec v2=v1; testCmp(v1, v2, 1); }
int main(int argc, char** argv) { int h = atoi(argv[2]); char* g = argv[1]; int m = testCmp(g, h); printf("return:%d\n", m); return 1; }
void testObj::test<4>(void) { Vec v1; v1.push_back(5); v1.push_back(0); Vec v2; v2.push_back(5); v2.push_back(9); testCmp(v1, v2, 0.5); }
void testObj::test<5>(void) { Vec v1; v1.push_back(5); v1.push_back(0); Vec v2; v2.push_back(5); v2.push_back(9); v2.push_back(4); testCmp(v1, v2, 2.0/5); }
void testObj::test<6>(void) { Vec v1; Vec v2; testCmp(v1, v2, 1); }