improve tests
This commit is contained in:
31
test/test_vect.cpp
Normal file
31
test/test_vect.cpp
Normal file
@@ -0,0 +1,31 @@
|
||||
#include "Vect.h"
|
||||
#include <cassert>
|
||||
|
||||
int main() {
|
||||
Vect vect1 {{3, 2, {
|
||||
1, 2,
|
||||
3, 4,
|
||||
5, 6,
|
||||
}}};
|
||||
Vect vect2 {{3, 2, {
|
||||
1, 0,
|
||||
0, 0,
|
||||
0, 1,
|
||||
}}};
|
||||
Vect vect3 {{3, 2, {
|
||||
1, 3,
|
||||
3, 7,
|
||||
5, 11,
|
||||
}}};
|
||||
Vect vect4 {{3, 2, {
|
||||
1, 0,
|
||||
0, 0,
|
||||
1, 11,
|
||||
}}};
|
||||
assert(vect1 == vect3);
|
||||
assert(vect2 == vect4);
|
||||
assert(vect1 != vect2);
|
||||
assert(vect2 != vect3);
|
||||
assert(vect3 != vect4);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user