blob: aecc3e4cd534b9034f708afd2b308671a5fc1123 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <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));
}
|