mirror of
https://github.com/mamedev/mame.git
synced 2024-11-16 07:48:32 +01:00
44eb5ea3c6
This reverts commit 1c61ccfe84
.
31 lines
522 B
C++
31 lines
522 B
C++
/*
|
|
* Copyright 2010-2022 Branimir Karadzic. All rights reserved.
|
|
* License: https://github.com/bkaradzic/bx/blob/master/LICENSE
|
|
*/
|
|
|
|
#include "test.h"
|
|
#include <bx/readerwriter.h>
|
|
|
|
TEST_CASE("writeLE", "")
|
|
{
|
|
bx::SizerWriter writer;
|
|
|
|
bx::Error err;
|
|
|
|
int32_t total = bx::writeLE(&writer, 1.0f, &err);
|
|
|
|
REQUIRE(err.isOk() );
|
|
REQUIRE(total == 4);
|
|
}
|
|
|
|
TEST_CASE("writeBE", "")
|
|
{
|
|
bx::SizerWriter writer;
|
|
|
|
bx::Error err;
|
|
|
|
int32_t total = bx::writeBE(&writer, 1.0f, &err);
|
|
|
|
REQUIRE(err.isOk() );
|
|
REQUIRE(total == 4);
|
|
}
|