1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 12:08:14 +00:00

Tests: Move AK tests to Tests/AK

This commit is contained in:
Brian Gianforcaro 2021-05-06 01:19:30 -07:00 committed by Andreas Kling
parent fd0dbd1ebf
commit 67322b0702
64 changed files with 1 additions and 2 deletions

17
Tests/AK/TestEndian.cpp Normal file
View file

@ -0,0 +1,17 @@
/*
* Copyright (c) 2020, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#include <LibTest/TestCase.h>
#include <AK/Endian.h>
static_assert(BigEndian<u32> {} == 0, "Big endian values should be default constructed in a constexpr context.");
static_assert(BigEndian<u32> { 42 } == 42, "Big endian values should be value constructed in a constexpr context.");
static_assert(LittleEndian<u32> {} == 0, "Little endian values should be default constructed in a constexpr context.");
static_assert(LittleEndian<u32> { 42 } == 42, "Little endian values should be value constructed in a constexpr context.");