Searched defs:to_bytes (Results 1 - 2 of 2) sorted by relevance

/bind-9.6-ESV-R11/unit/atf-src/atf-c++/detail/
H A Dtext_test.cpp313 ATF_TEST_CASE(to_bytes); variable
314 ATF_TEST_CASE_HEAD(to_bytes)
316 set_md_var("descr", "Tests the to_bytes function");
318 ATF_TEST_CASE_BODY(to_bytes)
320 using atf::text::to_bytes;
322 ATF_REQUIRE_EQ(0, to_bytes("0"));
323 ATF_REQUIRE_EQ(12345, to_bytes("12345"));
324 ATF_REQUIRE_EQ(2 * 1024, to_bytes("2k"));
325 ATF_REQUIRE_EQ(4 * 1024 * 1024, to_bytes("4m"));
326 ATF_REQUIRE_EQ(int64_t(8) * 1024 * 1024 * 1024, to_bytes("
[all...]
H A Dtext.cpp138 impl::to_bytes(std::string str) function in class:impl

Completed in 9 milliseconds