aboutsummaryrefslogtreecommitdiff
path: root/tests/src/platformTest.cpp
blob: dfa392300c1b8cdb3cda9a3d56e9b78922ade305 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <catch2/catch.hpp>
#include "../../include/Platform.hpp"

using namespace sibs;

TEST_CASE("platform same family")
{
    REQUIRE(isSamePlatformFamily(PLATFORM_LINUX, PLATFORM_LINUX_X86_64));
    REQUIRE(isSamePlatformFamily(PLATFORM_LINUX_X86_64, PLATFORM_LINUX));
    REQUIRE(!isSamePlatformFamily(PLATFORM_LINUX_X86_64, PLATFORM_MACOS));
    REQUIRE(!isSamePlatformFamily(PLATFORM_MACOS, PLATFORM_LINUX_X86_64));
    REQUIRE(!isSamePlatformFamily(PLATFORM_MACOS, PLATFORM_LINUX));
    REQUIRE(!isSamePlatformFamily(PLATFORM_LINUX, PLATFORM_MACOS));
}