Commit ae2f29f5 authored by Pavel Vainerman's avatar Pavel Vainerman

Исправил ошибки в тестах VTypes.

parent d3d99ffe
......@@ -239,7 +239,7 @@ TEST_CASE("VTypes: Byte","[vtypes][byte]")
SECTION("Default constructor")
{
Byte v;
REQUIRE( (char)v == 0 );
REQUIRE( v[0] == 0 );
}
SECTION("'2 byte' constructor")
{
......@@ -251,13 +251,13 @@ TEST_CASE("VTypes: Byte","[vtypes][byte]")
{
long l=0xff;
Byte v(l);
REQUIRE( (unsigned char)v == 0xff );
REQUIRE( (long)v == 0xff );
}
SECTION("Modbus constructor")
{
ModbusRTU::ModbusData d = 255;
Byte v(d);
REQUIRE( (unsigned char)v == 255 );
REQUIRE( (unsigned char)v[0] == 255 );
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment