Changeset View
Changeset View
Standalone View
Standalone View
src/test/util_tests.cpp
Show First 20 Lines • Show All 707 Lines • ▼ Show 20 Lines | CheckConvertBits<8, 5>({0xff, 0xff, 0xff, 0xff, 0xff}, | ||||
{0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f}); | {0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f}); | ||||
CheckConvertBits<8, 5>({0xff, 0xff, 0xff, 0xff, 0xff}, | CheckConvertBits<8, 5>({0xff, 0xff, 0xff, 0xff, 0xff}, | ||||
{0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f}); | {0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f, 0x1f}); | ||||
CheckConvertBits<8, 5>({0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef}, | CheckConvertBits<8, 5>({0x01, 0x23, 0x45, 0x67, 0x89, 0xab, 0xcd, 0xef}, | ||||
{0x00, 0x04, 0x11, 0x14, 0x0a, 0x19, 0x1c, 0x09, | {0x00, 0x04, 0x11, 0x14, 0x0a, 0x19, 0x1c, 0x09, | ||||
0x15, 0x0f, 0x06, 0x1e, 0x1e}); | 0x15, 0x0f, 0x06, 0x1e, 0x1e}); | ||||
} | } | ||||
BOOST_AUTO_TEST_CASE(util_EnvironmentalVariables) { | |||||
BOOST_CHECK_EQUAL(SetEnvironmentalVariable("BOOSTTEST", "TestValue"), 0); | |||||
BOOST_CHECK_EQUAL(GetEnvironmentalVariable("BOOSTTEST"), "TestValue"); | |||||
} | |||||
BOOST_AUTO_TEST_SUITE_END() | BOOST_AUTO_TEST_SUITE_END() |