mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-12 00:59:16 +05:00
20 lines
388 B
C++
20 lines
388 B
C++
|
|
||
|
#include "catch.hpp"
|
||
|
#include <../core/ngcore.hpp>
|
||
|
using namespace ngcore;
|
||
|
using namespace std;
|
||
|
|
||
|
|
||
|
TEST_CASE("Version")
|
||
|
{
|
||
|
VersionInfo v("v6.2.1811-3-asdf");
|
||
|
CHECK(v.to_string() == "v6.2.1811-3-asdf");
|
||
|
VersionInfo v2("6.2");
|
||
|
CHECK(v2.to_string() == "v6.2");
|
||
|
CHECK(v < "v7");
|
||
|
CHECK(v >= "6.2");
|
||
|
CHECK(v > "6.2.1811");
|
||
|
CHECK(v < "6.2.1811-5");
|
||
|
CHECK(v == "v6.2.1811-3");
|
||
|
}
|