Added initial seqence diagram support

This commit is contained in:
Bartek Kryza
2021-02-14 23:50:35 +01:00
parent 8e07c8cf13
commit 8c8d180e0f
10 changed files with 524 additions and 92 deletions

View File

@@ -1,19 +1,11 @@
#define CATCH_CONFIG_MAIN
#include "catch.hpp"
#include <source_file.hpp>
#include <string>
#include <complex>
TEST_CASE("Test add", "[unit-test]"){
// not very good tests, but oh well...
REQUIRE(add(2, 3) == 5);
REQUIRE(add(2., 3.) == 5.);
REQUIRE(add(0, 0) == 0);
REQUIRE(2+5 == 5);
std::cout << "RUNNING TEST" << std::endl;
std::complex<double> a(2., 3.);
std::complex<double> b(-1., 20.);
std::complex<double> c(1., 23.);
REQUIRE(add(a,b) == c);
}