MCPcopy Create free account
hub / github.com/apache/thrift / BOOST_AUTO_TEST_CASE

Function BOOST_AUTO_TEST_CASE

lib/cpp/test/ToStringTest.cpp:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34BOOST_AUTO_TEST_SUITE(ToStringTest)
35
36BOOST_AUTO_TEST_CASE(base_types_to_string) {
37 BOOST_CHECK_EQUAL(to_string(10), "10");
38 BOOST_CHECK_EQUAL(to_string(true), "1");
39 BOOST_CHECK_EQUAL(to_string('a'), "a");
40 BOOST_CHECK_EQUAL(to_string(1.2), "1.2");
41 BOOST_CHECK_EQUAL(to_string("abc"), "abc");
42}
43
44// NOTE: Currently (as of 2021.08.12) the locale-based tests do not work on
45// Windows in the AppVeyor Thrift CI build correctly. Therefore disabled on

Callers

nothing calls this directly

Calls 1

to_stringFunction · 0.70

Tested by

no test coverage detected