Skip to content

Commit 4130fa5

Browse files
author
DoubleX69
committed
instant Testbench
1 parent 40c56a2 commit 4130fa5

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

main.cpp

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
#include "SortAlgorithm.h"
2+
#include "Test.h"
3+
4+
#include <iostream>
5+
6+
7+
int main( )
8+
{
9+
Test t;
10+
11+
t.add( "Bubble Sort", bubbleSort );
12+
13+
14+
if ( t.test( ) )
15+
{
16+
cout << "**************** Pass!! *******************" << endl;
17+
}
18+
else
19+
{
20+
cout << "**************** Fail!! ******************" << endl;
21+
}
22+
return 0;
23+
}

0 commit comments

Comments
 (0)