MCPcopy Create free account
hub / github.com/attermann/microReticulum / testConvert

Function testConvert

test/test_os/test_os.cpp:34–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34void testConvert() {
35 //uint64_t time = ltime();
36 //printf("time: %lld\n", time);
37
38 uint64_t num = 1234567890;
39 TEST_ASSERT_EQUAL_UINT64(1234567890, num);
40
41 char str[16];
42 snprintf(str, 16, "%lld", num);
43 TEST_ASSERT_EQUAL_STRING("1234567890", str);
44
45 char* buf = (char*)#
46
47 //uint64_t newnum = (uint64_t)(*buf);
48 uint64_t newnum = *(uint64_t*)buf;
49 TEST_ASSERT_EQUAL_UINT64(1234567890, newnum);
50}
51
52void testOS() {
53 HEAD("Running testOS...", RNS::LOG_TRACE);

Callers 1

testOSFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected