Forráskód Böngészése

added more tests, testfile for linux execution

tarfeef101 7 éve
szülő
commit
97b2ff5d31
2 módosított fájl, 10 hozzáadás és 1 törlés
  1. 10 1
      test.cc
  2. BIN
      testfile

+ 10 - 1
test.cc

@@ -8,14 +8,23 @@ int main()
 	cout << "success! Created test" << endl;
 	int x[3] = {0,1,0};
 	int y[5] = {1,0,1,1,0};
+	int z[1] = {0};
+	int a[7] = {1,0,1,1,0,0,0};
+	int b[7] = {0,1,1,0,0,1,1};
 	test->insert(x, 3);
 	cout << "success! inserted x" << endl;
 	test->insert(y, 5);
 	cout << "success! inserted y" << endl;
+	test->insert(z, 5);
+	cout << "success! inserted z" << endl;
+	test->insert(a, 5);
+	cout << "success! inserted a" << endl;
+	test->insert(b, 5);
+	cout << "success! inserted b" << endl;
 	test->myPrintIsBetterThanYoursLogan();
 	cout << "Print Done!" << endl;
 	test->cut(x, 3);
-	cout << "success! cut tree" << endl;
+	cout << "success! cut x" << endl;
 	test->myPrintIsBetterThanYoursLogan();
 	delete test;
 	cout << "success! Completed test" << endl;

BIN
testfile