You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2423 lines
128 KiB

  1. /* /////////////////////////////////////////////////////////////////////////
  2. * File: test/component/test.component.inserters.integer/test.component.inserters.integer.cpp
  3. *
  4. * Purpose: Implementation file for the test.component.inserters.integer project.
  5. *
  6. * Created: 19th October 2006
  7. * Updated: 7th August 2012
  8. *
  9. * Status: Wizard-generated
  10. *
  11. * License: (Licensed under the Synesis Software Open License)
  12. *
  13. * Copyright (c) 2006-2012, Synesis Software Pty Ltd.
  14. * All rights reserved.
  15. *
  16. * www: http://www.synesis.com.au/software
  17. *
  18. * ////////////////////////////////////////////////////////////////////// */
  19. #include <pantheios/util/test/compiler_warnings_suppression.first_include.h>
  20. /* xTests Header Files */
  21. #include <xtests/xtests.h>
  22. /* Pantheios Header Files */
  23. #define PANTHEIOS_NO_INCLUDE_OS_AND_3PTYLIB_STRING_ACCESS
  24. #include <pantheios/pantheios.hpp> // Pantheios C++ main header
  25. #include <pantheios/inserters/integer.hpp> // for pantheios::integer
  26. #include <pantheios/backends/bec.test.h>
  27. /* STLSoft Header Files */
  28. #include <stlsoft/util/limit_traits.h>
  29. /* Standard C++ Header Files */
  30. #include <exception>
  31. /* Standard C Header Files */
  32. #include <stdio.h>
  33. #include <stdlib.h>
  34. #include <pantheios/util/test/compiler_warnings_suppression.last_include.h>
  35. /* /////////////////////////////////////////////////////////////////////////
  36. * Forward declarations
  37. */
  38. static void test_1_00();
  39. static void test_1_01();
  40. static void test_1_02();
  41. static void test_1_03();
  42. static void test_1_04();
  43. static void test_1_05();
  44. static void test_1_06();
  45. static void test_1_07();
  46. static void test_1_08();
  47. static void test_1_09();
  48. static void test_1_10();
  49. static void test_1_11();
  50. static void test_1_12();
  51. static void test_1_13();
  52. static void test_1_14();
  53. static void test_1_15();
  54. /* /////////////////////////////////////////////////////////////////////////
  55. * Globals
  56. */
  57. PANTHEIOS_EXTERN_C PAN_CHAR_T const PANTHEIOS_FE_PROCESS_IDENTITY[] = PANTHEIOS_LITERAL_STRING("test.component.inserters.integer");
  58. /* ////////////////////////////////////////////////////////////////////// */
  59. #define PSTR(x) PANTHEIOS_LITERAL_STRING(x)
  60. /* /////////////////////////////////////////////////////////////////////////
  61. * Character encoding
  62. */
  63. #ifdef PANTHEIOS_USE_WIDE_STRINGS
  64. # define XTESTS_TEST_STRING_EQUAL XTESTS_TEST_WIDE_STRING_EQUAL
  65. #else /* ? PANTHEIOS_USE_WIDE_STRINGS */
  66. # define XTESTS_TEST_STRING_EQUAL XTESTS_TEST_MULTIBYTE_STRING_EQUAL
  67. #endif /* PANTHEIOS_USE_WIDE_STRINGS */
  68. /* ////////////////////////////////////////////////////////////////////// */
  69. int main(int argc, char** argv)
  70. {
  71. int retCode = EXIT_SUCCESS;
  72. int verbosity = 2;
  73. XTESTS_COMMANDLINE_PARSEVERBOSITY(argc, argv, &verbosity);
  74. if(XTESTS_START_RUNNER("test.component.inserters.integer", verbosity))
  75. {
  76. #if 1
  77. XTESTS_RUN_CASE(test_1_00);
  78. XTESTS_RUN_CASE(test_1_01);
  79. XTESTS_RUN_CASE(test_1_02);
  80. XTESTS_RUN_CASE(test_1_03);
  81. XTESTS_RUN_CASE(test_1_04);
  82. XTESTS_RUN_CASE(test_1_05);
  83. XTESTS_RUN_CASE(test_1_06);
  84. XTESTS_RUN_CASE(test_1_07);
  85. XTESTS_RUN_CASE(test_1_08);
  86. XTESTS_RUN_CASE(test_1_09);
  87. XTESTS_RUN_CASE(test_1_10);
  88. XTESTS_RUN_CASE(test_1_11);
  89. XTESTS_RUN_CASE(test_1_12);
  90. XTESTS_RUN_CASE(test_1_13);
  91. XTESTS_RUN_CASE(test_1_14);
  92. XTESTS_RUN_CASE(test_1_15);
  93. #else /* ? 0 */
  94. XTESTS_RUN_CASE(test_1_15);
  95. XTESTS_RUN_CASE(test_1_14);
  96. XTESTS_RUN_CASE(test_1_13);
  97. XTESTS_RUN_CASE(test_1_12);
  98. XTESTS_RUN_CASE(test_1_11);
  99. XTESTS_RUN_CASE(test_1_10);
  100. XTESTS_RUN_CASE(test_1_09);
  101. XTESTS_RUN_CASE(test_1_08);
  102. XTESTS_RUN_CASE(test_1_07);
  103. XTESTS_RUN_CASE(test_1_06);
  104. XTESTS_RUN_CASE(test_1_05);
  105. XTESTS_RUN_CASE(test_1_04);
  106. XTESTS_RUN_CASE(test_1_03);
  107. XTESTS_RUN_CASE(test_1_02);
  108. XTESTS_RUN_CASE(test_1_01);
  109. XTESTS_RUN_CASE(test_1_00);
  110. #endif /* 0 */
  111. XTESTS_PRINT_RESULTS();
  112. XTESTS_END_RUNNER_UPDATE_EXITCODE(&retCode);
  113. }
  114. return retCode;
  115. }
  116. /* ////////////////////////////////////////////////////////////////////// */
  117. static void test_1_00()
  118. {
  119. // 1. Setup
  120. pantheios::be::test::reset();
  121. // 2. Create test data
  122. size_t n = 0;
  123. pantheios::log_NOTICE(pantheios::integer(0));
  124. pantheios::log_NOTICE(pantheios::integer(0L));
  125. n += 2;
  126. pantheios::log_NOTICE(pantheios::integer(static_cast< ::stlsoft::sint8_t>(0)));
  127. pantheios::log_NOTICE(pantheios::integer(static_cast< ::stlsoft::uint8_t>(0)));
  128. n += 2;
  129. pantheios::log_NOTICE(pantheios::integer(static_cast< ::stlsoft::sint16_t>(0)));
  130. pantheios::log_NOTICE(pantheios::integer(static_cast< ::stlsoft::uint16_t>(0)));
  131. n += 2;
  132. pantheios::log_NOTICE(pantheios::integer(static_cast< ::stlsoft::sint32_t>(0)));
  133. pantheios::log_NOTICE(pantheios::integer(static_cast< ::stlsoft::uint32_t>(0)));
  134. n += 2;
  135. #ifdef STLSOFT_CF_64BIT_INT_SUPPORT
  136. pantheios::log_NOTICE(pantheios::integer(static_cast< ::stlsoft::sint64_t>(0)));
  137. pantheios::log_NOTICE(pantheios::integer(static_cast< ::stlsoft::uint64_t>(0)));
  138. n += 2;
  139. #endif /* STLSOFT_CF_64BIT_INT_SUPPORT */
  140. #ifdef STLSOFT_CF_INT_DISTINCT_INT_TYPE
  141. pantheios::log_NOTICE(pantheios::integer(static_cast<int>(0)));
  142. pantheios::log_NOTICE(pantheios::integer(static_cast<unsigned int>(0)));
  143. n += 2;
  144. #endif /* STLSOFT_CF_INT_DISTINCT_INT_TYPE */
  145. #ifdef STLSOFT_CF_LONG_DISTINCT_INT_TYPE
  146. pantheios::log_NOTICE(pantheios::integer(static_cast<long>(0)));
  147. pantheios::log_NOTICE(pantheios::integer(static_cast<unsigned long>(0)));
  148. n += 2;
  149. #endif /* STLSOFT_CF_LONG_DISTINCT_INT_TYPE */
  150. #ifdef STLSOFT_CF_BUILTIN_long_long_SUPPORT
  151. pantheios::log_NOTICE(pantheios::integer(static_cast<long long>(0)));
  152. pantheios::log_NOTICE(pantheios::integer(static_cast<unsigned long long>(0)));
  153. n += 2;
  154. #endif /* STLSOFT_CF_BUILTIN_long_long_SUPPORT */
  155. // 3. Verification
  156. pantheios::be::test::Results results = pantheios::be::test::results();
  157. XTESTS_TEST(!results.empty());
  158. XTESTS_REQUIRE(XTESTS_TEST_INTEGER_EQUAL(n, results.size()));
  159. { for(size_t i = 0; i != n; ++i)
  160. {
  161. XTESTS_TEST_STRING_EQUAL(PSTR("0"), results[i].statement);
  162. }}
  163. }
  164. static void test_1_01()
  165. {
  166. // 1. Setup
  167. pantheios::be::test::reset();
  168. // 2. Create test data
  169. pantheios::log_NOTICE(pantheios::integer(static_cast<short>(0)));
  170. pantheios::log_NOTICE(pantheios::integer(static_cast<unsigned short>(0)));
  171. pantheios::log_NOTICE(pantheios::integer(static_cast<int>(0)));
  172. pantheios::log_NOTICE(pantheios::integer(static_cast<unsigned int>(0)));
  173. pantheios::log_NOTICE(pantheios::integer(static_cast<long>(0)));
  174. pantheios::log_NOTICE(pantheios::integer(static_cast<unsigned long>(0)));
  175. #ifdef STLSOFT_CF_64BIT_INT_SUPPORT
  176. pantheios::log_NOTICE(pantheios::integer(static_cast< ::pantheios::sint64_t>(0)));
  177. pantheios::log_NOTICE(pantheios::integer(static_cast< ::stlsoft::uint64_t>(0)));
  178. #endif /* STLSOFT_CF_64BIT_INT_SUPPORT */
  179. // 3. Verification
  180. pantheios::be::test::Results results = pantheios::be::test::results();
  181. XTESTS_TEST(!results.empty());
  182. XTESTS_REQUIRE(XTESTS_TEST_INTEGER_EQUAL(8u, results.size()));
  183. XTESTS_TEST_STRING_EQUAL(PSTR("0"), results[0].statement);
  184. XTESTS_TEST_STRING_EQUAL(PSTR("0"), results[1].statement);
  185. XTESTS_TEST_STRING_EQUAL(PSTR("0"), results[2].statement);
  186. XTESTS_TEST_STRING_EQUAL(PSTR("0"), results[3].statement);
  187. XTESTS_TEST_STRING_EQUAL(PSTR("0"), results[4].statement);
  188. XTESTS_TEST_STRING_EQUAL(PSTR("0"), results[5].statement);
  189. #ifdef STLSOFT_CF_64BIT_INT_SUPPORT
  190. XTESTS_TEST_STRING_EQUAL(PSTR("0"), results[6].statement);
  191. XTESTS_TEST_STRING_EQUAL(PSTR("0"), results[7].statement);
  192. #endif /* STLSOFT_CF_64BIT_INT_SUPPORT */
  193. }
  194. static void test_1_02()
  195. {
  196. // 1. Setup
  197. pantheios::be::test::reset();
  198. // 2. Create test data
  199. pantheios::log_NOTICE(pantheios::integer(0));
  200. pantheios::log_NOTICE(pantheios::integer(1));
  201. pantheios::log_NOTICE(pantheios::integer(-1));
  202. // 3. Verification
  203. pantheios::be::test::Results results = pantheios::be::test::results();
  204. XTESTS_TEST(!results.empty());
  205. XTESTS_REQUIRE(XTESTS_TEST_INTEGER_EQUAL(3u, results.size()));
  206. XTESTS_TEST_STRING_EQUAL(PSTR("0"), results[0].statement);
  207. XTESTS_TEST_STRING_EQUAL(PSTR("1"), results[1].statement);
  208. XTESTS_TEST_STRING_EQUAL(PSTR("-1"), results[2].statement);
  209. }
  210. static void test_1_03()
  211. {
  212. // 1. Setup
  213. pantheios::be::test::reset();
  214. // 2. Create test data
  215. pantheios::log_NOTICE(pantheios::integer(0, 5));
  216. pantheios::log_NOTICE(pantheios::integer(1, 5));
  217. pantheios::log_NOTICE(pantheios::integer(-1, 5));
  218. // 3. Verification
  219. pantheios::be::test::Results results = pantheios::be::test::results();
  220. XTESTS_TEST(!results.empty());
  221. XTESTS_REQUIRE(XTESTS_TEST_INTEGER_EQUAL(3u, results.size()));
  222. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[0].statement);
  223. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[1].statement);
  224. XTESTS_TEST_STRING_EQUAL(PSTR(" -1"), results[2].statement);
  225. }
  226. static void test_1_04()
  227. {
  228. // 1. Setup
  229. pantheios::be::test::reset();
  230. // 2. Create test data
  231. pantheios::log_NOTICE(pantheios::integer(0x0000, pantheios::fmt::fullHex));
  232. pantheios::log_NOTICE(pantheios::integer(0x0001, pantheios::fmt::fullHex));
  233. pantheios::log_NOTICE(pantheios::integer(0x8421, pantheios::fmt::fullHex));
  234. pantheios::log_NOTICE(pantheios::integer(0x0000, pantheios::fmt::fullHex | 1));
  235. pantheios::log_NOTICE(pantheios::integer(0x0001, pantheios::fmt::fullHex | 1));
  236. pantheios::log_NOTICE(pantheios::integer(0x8421, pantheios::fmt::fullHex | 1));
  237. pantheios::log_NOTICE(pantheios::integer(0x0000, pantheios::fmt::fullHex | 2));
  238. pantheios::log_NOTICE(pantheios::integer(0x0001, pantheios::fmt::fullHex | 2));
  239. pantheios::log_NOTICE(pantheios::integer(0x8421, pantheios::fmt::fullHex | 2));
  240. pantheios::log_NOTICE(pantheios::integer(0x0000, pantheios::fmt::fullHex | 3));
  241. pantheios::log_NOTICE(pantheios::integer(0x0001, pantheios::fmt::fullHex | 3));
  242. pantheios::log_NOTICE(pantheios::integer(0x8421, pantheios::fmt::fullHex | 3));
  243. pantheios::log_NOTICE(pantheios::integer(0x0000, pantheios::fmt::fullHex | 4));
  244. pantheios::log_NOTICE(pantheios::integer(0x0001, pantheios::fmt::fullHex | 4));
  245. pantheios::log_NOTICE(pantheios::integer(0x8421, pantheios::fmt::fullHex | 4));
  246. pantheios::log_NOTICE(pantheios::integer(0x0000, pantheios::fmt::fullHex | 5));
  247. pantheios::log_NOTICE(pantheios::integer(0x0001, pantheios::fmt::fullHex | 5));
  248. pantheios::log_NOTICE(pantheios::integer(0x8421, pantheios::fmt::fullHex | 5));
  249. pantheios::log_NOTICE(pantheios::integer(0x0000, pantheios::fmt::fullHex | 6));
  250. pantheios::log_NOTICE(pantheios::integer(0x0001, pantheios::fmt::fullHex | 6));
  251. pantheios::log_NOTICE(pantheios::integer(0x8421, pantheios::fmt::fullHex | 6));
  252. pantheios::log_NOTICE(pantheios::integer(0x0000, pantheios::fmt::fullHex | 7));
  253. pantheios::log_NOTICE(pantheios::integer(0x0001, pantheios::fmt::fullHex | 7));
  254. pantheios::log_NOTICE(pantheios::integer(0x8421, pantheios::fmt::fullHex | 7));
  255. pantheios::log_NOTICE(pantheios::integer(0x0000, pantheios::fmt::fullHex | 8));
  256. pantheios::log_NOTICE(pantheios::integer(0x0001, pantheios::fmt::fullHex | 8));
  257. pantheios::log_NOTICE(pantheios::integer(0x8421, pantheios::fmt::fullHex | 8));
  258. pantheios::log_NOTICE(pantheios::integer(0x0000, pantheios::fmt::fullHex | 9));
  259. pantheios::log_NOTICE(pantheios::integer(0x0001, pantheios::fmt::fullHex | 9));
  260. pantheios::log_NOTICE(pantheios::integer(0x8421, pantheios::fmt::fullHex | 9));
  261. pantheios::log_NOTICE(pantheios::integer(0x0000, pantheios::fmt::fullHex | 10));
  262. pantheios::log_NOTICE(pantheios::integer(0x0001, pantheios::fmt::fullHex | 10));
  263. pantheios::log_NOTICE(pantheios::integer(0x8421, pantheios::fmt::fullHex | 10));
  264. // 3. Verification
  265. pantheios::be::test::Results results = pantheios::be::test::results();
  266. XTESTS_TEST(!results.empty());
  267. XTESTS_REQUIRE(XTESTS_TEST_INTEGER_EQUAL(33u, results.size()));
  268. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[0].statement);
  269. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[1].statement);
  270. XTESTS_TEST_STRING_EQUAL(PSTR("0x8421"), results[2].statement);
  271. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[3].statement);
  272. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[4].statement);
  273. XTESTS_TEST_STRING_EQUAL(PSTR("0x8421"), results[5].statement);
  274. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[6].statement);
  275. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[7].statement);
  276. XTESTS_TEST_STRING_EQUAL(PSTR("0x8421"), results[8].statement);
  277. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[9].statement);
  278. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[10].statement);
  279. XTESTS_TEST_STRING_EQUAL(PSTR("0x8421"), results[11].statement);
  280. XTESTS_TEST_STRING_EQUAL(PSTR("0x00"), results[12].statement);
  281. XTESTS_TEST_STRING_EQUAL(PSTR("0x01"), results[13].statement);
  282. XTESTS_TEST_STRING_EQUAL(PSTR("0x8421"), results[14].statement);
  283. XTESTS_TEST_STRING_EQUAL(PSTR("0x000"), results[15].statement);
  284. XTESTS_TEST_STRING_EQUAL(PSTR("0x001"), results[16].statement);
  285. XTESTS_TEST_STRING_EQUAL(PSTR("0x8421"), results[17].statement);
  286. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000"), results[18].statement);
  287. XTESTS_TEST_STRING_EQUAL(PSTR("0x0001"), results[19].statement);
  288. XTESTS_TEST_STRING_EQUAL(PSTR("0x8421"), results[20].statement);
  289. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000"), results[21].statement);
  290. XTESTS_TEST_STRING_EQUAL(PSTR("0x00001"), results[22].statement);
  291. XTESTS_TEST_STRING_EQUAL(PSTR("0x08421"), results[23].statement);
  292. XTESTS_TEST_STRING_EQUAL(PSTR("0x000000"), results[24].statement);
  293. XTESTS_TEST_STRING_EQUAL(PSTR("0x000001"), results[25].statement);
  294. XTESTS_TEST_STRING_EQUAL(PSTR("0x008421"), results[26].statement);
  295. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000000"), results[27].statement);
  296. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000001"), results[28].statement);
  297. XTESTS_TEST_STRING_EQUAL(PSTR("0x0008421"), results[29].statement);
  298. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000000"), results[30].statement);
  299. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000001"), results[31].statement);
  300. XTESTS_TEST_STRING_EQUAL(PSTR("0x00008421"), results[32].statement);
  301. }
  302. static void test_1_05()
  303. {
  304. // 1. Setup
  305. pantheios::be::test::reset();
  306. // 2. Create test data
  307. pantheios::log_NOTICE(pantheios::integer(0, -5));
  308. pantheios::log_NOTICE(pantheios::integer(1, -5));
  309. pantheios::log_NOTICE(pantheios::integer(-1, -5));
  310. // 3. Verification
  311. pantheios::be::test::Results results = pantheios::be::test::results();
  312. XTESTS_TEST(!results.empty());
  313. XTESTS_REQUIRE(XTESTS_TEST_INTEGER_EQUAL(3u, results.size()));
  314. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[0].statement);
  315. XTESTS_TEST_STRING_EQUAL(PSTR("1 "), results[1].statement);
  316. XTESTS_TEST_STRING_EQUAL(PSTR("-1 "), results[2].statement);
  317. }
  318. static void test_1_06()
  319. {
  320. // 1. Setup
  321. pantheios::be::test::reset();
  322. // 2. Create test data
  323. pantheios::log_NOTICE(pantheios::integer(0x0000, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  324. pantheios::log_NOTICE(pantheios::integer(0x0001, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  325. pantheios::log_NOTICE(pantheios::integer(0x8421, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  326. pantheios::log_NOTICE(pantheios::integer(0x0000, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 1));
  327. pantheios::log_NOTICE(pantheios::integer(0x0001, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 1));
  328. pantheios::log_NOTICE(pantheios::integer(0x8421, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 1));
  329. pantheios::log_NOTICE(pantheios::integer(0x0000, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 2));
  330. pantheios::log_NOTICE(pantheios::integer(0x0001, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 2));
  331. pantheios::log_NOTICE(pantheios::integer(0x8421, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 2));
  332. pantheios::log_NOTICE(pantheios::integer(0x0000, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 3));
  333. pantheios::log_NOTICE(pantheios::integer(0x0001, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 3));
  334. pantheios::log_NOTICE(pantheios::integer(0x8421, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 3));
  335. pantheios::log_NOTICE(pantheios::integer(0x0000, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 4));
  336. pantheios::log_NOTICE(pantheios::integer(0x0001, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 4));
  337. pantheios::log_NOTICE(pantheios::integer(0x8421, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 4));
  338. pantheios::log_NOTICE(pantheios::integer(0x0000, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 5));
  339. pantheios::log_NOTICE(pantheios::integer(0x0001, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 5));
  340. pantheios::log_NOTICE(pantheios::integer(0x8421, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 5));
  341. pantheios::log_NOTICE(pantheios::integer(0x0000, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 6));
  342. pantheios::log_NOTICE(pantheios::integer(0x0001, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 6));
  343. pantheios::log_NOTICE(pantheios::integer(0x8421, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 6));
  344. pantheios::log_NOTICE(pantheios::integer(0x0000, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 7));
  345. pantheios::log_NOTICE(pantheios::integer(0x0001, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 7));
  346. pantheios::log_NOTICE(pantheios::integer(0x8421, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 7));
  347. pantheios::log_NOTICE(pantheios::integer(0x0000, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 8));
  348. pantheios::log_NOTICE(pantheios::integer(0x0001, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 8));
  349. pantheios::log_NOTICE(pantheios::integer(0x8421, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 8));
  350. // 3. Verification
  351. pantheios::be::test::Results results = pantheios::be::test::results();
  352. XTESTS_TEST(!results.empty());
  353. XTESTS_REQUIRE(XTESTS_TEST_INTEGER_EQUAL(27u, results.size()));
  354. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[0].statement);
  355. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[1].statement);
  356. XTESTS_TEST_STRING_EQUAL(PSTR("0x8421"), results[2].statement);
  357. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[3].statement);
  358. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[4].statement);
  359. XTESTS_TEST_STRING_EQUAL(PSTR("0x8421"), results[5].statement);
  360. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[6].statement);
  361. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[7].statement);
  362. XTESTS_TEST_STRING_EQUAL(PSTR("0x8421"), results[8].statement);
  363. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[9].statement);
  364. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[10].statement);
  365. XTESTS_TEST_STRING_EQUAL(PSTR("0x8421"), results[11].statement);
  366. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[12].statement);
  367. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[13].statement);
  368. XTESTS_TEST_STRING_EQUAL(PSTR("0x8421"), results[14].statement);
  369. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[15].statement);
  370. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[16].statement);
  371. XTESTS_TEST_STRING_EQUAL(PSTR("0x8421"), results[17].statement);
  372. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[18].statement);
  373. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[19].statement);
  374. XTESTS_TEST_STRING_EQUAL(PSTR("0x8421"), results[20].statement);
  375. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[21].statement);
  376. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[22].statement);
  377. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x8421"), results[23].statement);
  378. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[24].statement);
  379. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[25].statement);
  380. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x8421"), results[26].statement);
  381. }
  382. static void test_1_07()
  383. {
  384. #ifdef STLSOFT_CF_64BIT_INT_SUPPORT
  385. // 1. Setup
  386. pantheios::be::test::reset();
  387. // 2. Create test data
  388. pantheios::sint64_t i0 = static_cast<pantheios::sint64_t>(0);
  389. pantheios::sint64_t i1 = static_cast<pantheios::sint64_t>(1);
  390. pantheios::sint64_t i2 = static_cast<pantheios::sint64_t>(STLSOFT_GEN_UINT64_SUFFIX(0x1234567812345678));
  391. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex));
  392. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex));
  393. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex));
  394. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 1));
  395. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 1));
  396. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 1));
  397. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 2));
  398. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 2));
  399. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 2));
  400. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 3));
  401. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 3));
  402. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 3));
  403. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 4));
  404. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 4));
  405. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 4));
  406. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 5));
  407. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 5));
  408. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 5));
  409. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 6));
  410. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 6));
  411. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 6));
  412. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 7));
  413. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 7));
  414. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 7));
  415. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 8));
  416. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 8));
  417. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 8));
  418. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 9));
  419. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 9));
  420. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 9));
  421. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 10));
  422. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 10));
  423. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 10));
  424. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 11));
  425. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 11));
  426. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 11));
  427. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 12));
  428. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 12));
  429. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 12));
  430. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 13));
  431. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 13));
  432. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 13));
  433. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 14));
  434. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 14));
  435. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 14));
  436. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 15));
  437. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 15));
  438. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 15));
  439. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 16));
  440. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 16));
  441. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 16));
  442. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 17));
  443. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 17));
  444. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 17));
  445. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 18));
  446. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 18));
  447. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 18));
  448. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 19));
  449. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 19));
  450. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 19));
  451. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 20));
  452. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 20));
  453. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 20));
  454. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 21));
  455. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 21));
  456. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 21));
  457. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 22));
  458. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 22));
  459. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 22));
  460. // 3. Verification
  461. pantheios::be::test::Results results = pantheios::be::test::results();
  462. XTESTS_TEST(!results.empty());
  463. XTESTS_REQUIRE(XTESTS_TEST_INTEGER_EQUAL(69u, results.size()));
  464. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[0].statement);
  465. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[1].statement);
  466. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[2].statement);
  467. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[3].statement);
  468. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[4].statement);
  469. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[5].statement);
  470. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[6].statement);
  471. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[7].statement);
  472. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[8].statement);
  473. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[9].statement);
  474. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[10].statement);
  475. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[11].statement);
  476. XTESTS_TEST_STRING_EQUAL(PSTR("0x00"), results[12].statement);
  477. XTESTS_TEST_STRING_EQUAL(PSTR("0x01"), results[13].statement);
  478. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[14].statement);
  479. XTESTS_TEST_STRING_EQUAL(PSTR("0x000"), results[15].statement);
  480. XTESTS_TEST_STRING_EQUAL(PSTR("0x001"), results[16].statement);
  481. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[17].statement);
  482. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000"), results[18].statement);
  483. XTESTS_TEST_STRING_EQUAL(PSTR("0x0001"), results[19].statement);
  484. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[20].statement);
  485. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000"), results[21].statement);
  486. XTESTS_TEST_STRING_EQUAL(PSTR("0x00001"), results[22].statement);
  487. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[23].statement);
  488. XTESTS_TEST_STRING_EQUAL(PSTR("0x000000"), results[24].statement);
  489. XTESTS_TEST_STRING_EQUAL(PSTR("0x000001"), results[25].statement);
  490. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[26].statement);
  491. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000000"), results[27].statement);
  492. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000001"), results[28].statement);
  493. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[29].statement);
  494. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000000"), results[30].statement);
  495. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000001"), results[31].statement);
  496. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[32].statement);
  497. XTESTS_TEST_STRING_EQUAL(PSTR("0x000000000"), results[33].statement);
  498. XTESTS_TEST_STRING_EQUAL(PSTR("0x000000001"), results[34].statement);
  499. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[35].statement);
  500. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000000000"), results[36].statement);
  501. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000000001"), results[37].statement);
  502. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[38].statement);
  503. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000000000"), results[39].statement);
  504. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000000001"), results[40].statement);
  505. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[41].statement);
  506. XTESTS_TEST_STRING_EQUAL(PSTR("0x000000000000"), results[42].statement);
  507. XTESTS_TEST_STRING_EQUAL(PSTR("0x000000000001"), results[43].statement);
  508. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[44].statement);
  509. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000000000000"), results[45].statement);
  510. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000000000001"), results[46].statement);
  511. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[47].statement);
  512. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000000000000"), results[48].statement);
  513. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000000000001"), results[49].statement);
  514. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[50].statement);
  515. XTESTS_TEST_STRING_EQUAL(PSTR("0x000000000000000"), results[51].statement);
  516. XTESTS_TEST_STRING_EQUAL(PSTR("0x000000000000001"), results[52].statement);
  517. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[53].statement);
  518. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000000000000000"), results[54].statement);
  519. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000000000000001"), results[55].statement);
  520. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[56].statement);
  521. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000000000000000"), results[57].statement);
  522. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000000000000001"), results[58].statement);
  523. XTESTS_TEST_STRING_EQUAL(PSTR("0x01234567812345678"), results[59].statement);
  524. XTESTS_TEST_STRING_EQUAL(PSTR("0x000000000000000000"), results[60].statement);
  525. XTESTS_TEST_STRING_EQUAL(PSTR("0x000000000000000001"), results[61].statement);
  526. XTESTS_TEST_STRING_EQUAL(PSTR("0x001234567812345678"), results[62].statement);
  527. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000000000000000000"), results[63].statement);
  528. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000000000000000001"), results[64].statement);
  529. XTESTS_TEST_STRING_EQUAL(PSTR("0x0001234567812345678"), results[65].statement);
  530. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000000000000000000"), results[66].statement);
  531. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000000000000000001"), results[67].statement);
  532. XTESTS_TEST_STRING_EQUAL(PSTR("0x00001234567812345678"), results[68].statement);
  533. #endif /* STLSOFT_CF_64BIT_INT_SUPPORT */
  534. }
  535. static void test_1_08()
  536. {
  537. #ifdef STLSOFT_CF_64BIT_INT_SUPPORT
  538. // 1. Setup
  539. pantheios::be::test::reset();
  540. // 2. Create test data
  541. stlsoft::uint64_t i0 = static_cast<pantheios::sint64_t>(0);
  542. stlsoft::uint64_t i1 = static_cast<pantheios::sint64_t>(1);
  543. stlsoft::uint64_t i2 = static_cast<pantheios::sint64_t>(STLSOFT_GEN_UINT64_SUFFIX(0x1234567812345678));
  544. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex));
  545. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex));
  546. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex));
  547. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 1));
  548. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 1));
  549. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 1));
  550. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 2));
  551. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 2));
  552. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 2));
  553. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 3));
  554. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 3));
  555. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 3));
  556. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 4));
  557. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 4));
  558. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 4));
  559. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 5));
  560. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 5));
  561. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 5));
  562. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 6));
  563. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 6));
  564. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 6));
  565. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 7));
  566. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 7));
  567. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 7));
  568. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 8));
  569. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 8));
  570. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 8));
  571. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 9));
  572. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 9));
  573. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 9));
  574. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 10));
  575. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 10));
  576. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 10));
  577. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 11));
  578. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 11));
  579. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 11));
  580. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 12));
  581. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 12));
  582. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 12));
  583. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 13));
  584. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 13));
  585. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 13));
  586. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 14));
  587. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 14));
  588. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 14));
  589. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 15));
  590. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 15));
  591. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 15));
  592. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 16));
  593. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 16));
  594. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 16));
  595. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 17));
  596. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 17));
  597. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 17));
  598. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 18));
  599. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 18));
  600. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 18));
  601. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 19));
  602. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 19));
  603. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 19));
  604. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 20));
  605. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 20));
  606. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 20));
  607. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 21));
  608. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 21));
  609. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 21));
  610. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::fullHex | 22));
  611. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::fullHex | 22));
  612. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::fullHex | 22));
  613. // 3. Verification
  614. pantheios::be::test::Results results = pantheios::be::test::results();
  615. XTESTS_TEST(!results.empty());
  616. XTESTS_REQUIRE(XTESTS_TEST_INTEGER_EQUAL(69u, results.size()));
  617. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[0].statement);
  618. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[1].statement);
  619. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[2].statement);
  620. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[3].statement);
  621. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[4].statement);
  622. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[5].statement);
  623. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[6].statement);
  624. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[7].statement);
  625. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[8].statement);
  626. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[9].statement);
  627. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[10].statement);
  628. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[11].statement);
  629. XTESTS_TEST_STRING_EQUAL(PSTR("0x00"), results[12].statement);
  630. XTESTS_TEST_STRING_EQUAL(PSTR("0x01"), results[13].statement);
  631. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[14].statement);
  632. XTESTS_TEST_STRING_EQUAL(PSTR("0x000"), results[15].statement);
  633. XTESTS_TEST_STRING_EQUAL(PSTR("0x001"), results[16].statement);
  634. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[17].statement);
  635. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000"), results[18].statement);
  636. XTESTS_TEST_STRING_EQUAL(PSTR("0x0001"), results[19].statement);
  637. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[20].statement);
  638. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000"), results[21].statement);
  639. XTESTS_TEST_STRING_EQUAL(PSTR("0x00001"), results[22].statement);
  640. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[23].statement);
  641. XTESTS_TEST_STRING_EQUAL(PSTR("0x000000"), results[24].statement);
  642. XTESTS_TEST_STRING_EQUAL(PSTR("0x000001"), results[25].statement);
  643. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[26].statement);
  644. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000000"), results[27].statement);
  645. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000001"), results[28].statement);
  646. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[29].statement);
  647. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000000"), results[30].statement);
  648. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000001"), results[31].statement);
  649. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[32].statement);
  650. XTESTS_TEST_STRING_EQUAL(PSTR("0x000000000"), results[33].statement);
  651. XTESTS_TEST_STRING_EQUAL(PSTR("0x000000001"), results[34].statement);
  652. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[35].statement);
  653. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000000000"), results[36].statement);
  654. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000000001"), results[37].statement);
  655. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[38].statement);
  656. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000000000"), results[39].statement);
  657. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000000001"), results[40].statement);
  658. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[41].statement);
  659. XTESTS_TEST_STRING_EQUAL(PSTR("0x000000000000"), results[42].statement);
  660. XTESTS_TEST_STRING_EQUAL(PSTR("0x000000000001"), results[43].statement);
  661. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[44].statement);
  662. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000000000000"), results[45].statement);
  663. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000000000001"), results[46].statement);
  664. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[47].statement);
  665. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000000000000"), results[48].statement);
  666. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000000000001"), results[49].statement);
  667. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[50].statement);
  668. XTESTS_TEST_STRING_EQUAL(PSTR("0x000000000000000"), results[51].statement);
  669. XTESTS_TEST_STRING_EQUAL(PSTR("0x000000000000001"), results[52].statement);
  670. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[53].statement);
  671. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000000000000000"), results[54].statement);
  672. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000000000000001"), results[55].statement);
  673. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[56].statement);
  674. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000000000000000"), results[57].statement);
  675. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000000000000001"), results[58].statement);
  676. XTESTS_TEST_STRING_EQUAL(PSTR("0x01234567812345678"), results[59].statement);
  677. XTESTS_TEST_STRING_EQUAL(PSTR("0x000000000000000000"), results[60].statement);
  678. XTESTS_TEST_STRING_EQUAL(PSTR("0x000000000000000001"), results[61].statement);
  679. XTESTS_TEST_STRING_EQUAL(PSTR("0x001234567812345678"), results[62].statement);
  680. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000000000000000000"), results[63].statement);
  681. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000000000000000001"), results[64].statement);
  682. XTESTS_TEST_STRING_EQUAL(PSTR("0x0001234567812345678"), results[65].statement);
  683. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000000000000000000"), results[66].statement);
  684. XTESTS_TEST_STRING_EQUAL(PSTR("0x00000000000000000001"), results[67].statement);
  685. XTESTS_TEST_STRING_EQUAL(PSTR("0x00001234567812345678"), results[68].statement);
  686. #endif /* STLSOFT_CF_64BIT_INT_SUPPORT */
  687. }
  688. static void test_1_09()
  689. {
  690. #ifdef STLSOFT_CF_64BIT_INT_SUPPORT
  691. // 1. Setup
  692. pantheios::be::test::reset();
  693. // 2. Create test data
  694. pantheios::sint64_t i0 = static_cast<pantheios::sint64_t>(0);
  695. pantheios::sint64_t i1 = static_cast<pantheios::sint64_t>(1);
  696. pantheios::sint64_t i2 = static_cast<pantheios::sint64_t>(STLSOFT_GEN_UINT64_SUFFIX(0x1234567812345678));
  697. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  698. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  699. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  700. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 1));
  701. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 1));
  702. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 1));
  703. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 2));
  704. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 2));
  705. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 2));
  706. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 3));
  707. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 3));
  708. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 3));
  709. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 4));
  710. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 4));
  711. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 4));
  712. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 5));
  713. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 5));
  714. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 5));
  715. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 6));
  716. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 6));
  717. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 6));
  718. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 7));
  719. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 7));
  720. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 7));
  721. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 8));
  722. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 8));
  723. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 8));
  724. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 9));
  725. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 9));
  726. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 9));
  727. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 10));
  728. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 10));
  729. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 10));
  730. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 11));
  731. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 11));
  732. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 11));
  733. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 12));
  734. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 12));
  735. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 12));
  736. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 13));
  737. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 13));
  738. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 13));
  739. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 14));
  740. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 14));
  741. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 14));
  742. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 15));
  743. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 15));
  744. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 15));
  745. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 16));
  746. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 16));
  747. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 16));
  748. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 17));
  749. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 17));
  750. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 17));
  751. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 18));
  752. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 18));
  753. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 18));
  754. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 19));
  755. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 19));
  756. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 19));
  757. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 20));
  758. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 20));
  759. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 20));
  760. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 21));
  761. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 21));
  762. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 21));
  763. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 22));
  764. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 22));
  765. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex | 22));
  766. // 3. Verification
  767. pantheios::be::test::Results results = pantheios::be::test::results();
  768. XTESTS_TEST(!results.empty());
  769. XTESTS_REQUIRE(XTESTS_TEST_INTEGER_EQUAL(69u, results.size()));
  770. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[0].statement);
  771. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[1].statement);
  772. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[2].statement);
  773. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[3].statement);
  774. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[4].statement);
  775. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[5].statement);
  776. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[6].statement);
  777. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[7].statement);
  778. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[8].statement);
  779. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[9].statement);
  780. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[10].statement);
  781. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[11].statement);
  782. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[12].statement);
  783. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[13].statement);
  784. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[14].statement);
  785. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[15].statement);
  786. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[16].statement);
  787. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[17].statement);
  788. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[18].statement);
  789. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[19].statement);
  790. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[20].statement);
  791. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[21].statement);
  792. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[22].statement);
  793. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[23].statement);
  794. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[24].statement);
  795. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[25].statement);
  796. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[26].statement);
  797. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[27].statement);
  798. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[28].statement);
  799. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[29].statement);
  800. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[30].statement);
  801. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[31].statement);
  802. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[32].statement);
  803. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[33].statement);
  804. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[34].statement);
  805. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[35].statement);
  806. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[36].statement);
  807. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[37].statement);
  808. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[38].statement);
  809. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[39].statement);
  810. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[40].statement);
  811. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[41].statement);
  812. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[42].statement);
  813. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[43].statement);
  814. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[44].statement);
  815. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[45].statement);
  816. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[46].statement);
  817. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[47].statement);
  818. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[48].statement);
  819. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[49].statement);
  820. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[50].statement);
  821. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[51].statement);
  822. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[52].statement);
  823. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[53].statement);
  824. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[54].statement);
  825. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[55].statement);
  826. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[56].statement);
  827. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[57].statement);
  828. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[58].statement);
  829. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1234567812345678"), results[59].statement);
  830. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[60].statement);
  831. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[61].statement);
  832. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1234567812345678"), results[62].statement);
  833. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[63].statement);
  834. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[64].statement);
  835. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1234567812345678"), results[65].statement);
  836. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[66].statement);
  837. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1"), results[67].statement);
  838. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1234567812345678"), results[68].statement);
  839. #endif /* STLSOFT_CF_64BIT_INT_SUPPORT */
  840. }
  841. static void test_1_10()
  842. {
  843. #ifdef STLSOFT_CF_64BIT_INT_SUPPORT
  844. // 1. Setup
  845. pantheios::be::test::reset();
  846. // 2. Create test data
  847. pantheios::sint64_t i0 = static_cast<pantheios::sint64_t>(0);
  848. pantheios::sint64_t i1 = static_cast<pantheios::sint64_t>(1);
  849. pantheios::sint64_t i2 = static_cast<pantheios::sint64_t>(STLSOFT_GEN_UINT64_SUFFIX(0x1234567812345678));
  850. pantheios::log_NOTICE(pantheios::integer(i0, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  851. pantheios::log_NOTICE(pantheios::integer(i1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  852. pantheios::log_NOTICE(pantheios::integer(i2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  853. pantheios::log_NOTICE(pantheios::integer(i0, -1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  854. pantheios::log_NOTICE(pantheios::integer(i1, -1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  855. pantheios::log_NOTICE(pantheios::integer(i2, -1, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  856. pantheios::log_NOTICE(pantheios::integer(i0, -2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  857. pantheios::log_NOTICE(pantheios::integer(i1, -2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  858. pantheios::log_NOTICE(pantheios::integer(i2, -2, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  859. pantheios::log_NOTICE(pantheios::integer(i0, -3, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  860. pantheios::log_NOTICE(pantheios::integer(i1, -3, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  861. pantheios::log_NOTICE(pantheios::integer(i2, -3, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  862. pantheios::log_NOTICE(pantheios::integer(i0, -4, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  863. pantheios::log_NOTICE(pantheios::integer(i1, -4, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  864. pantheios::log_NOTICE(pantheios::integer(i2, -4, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  865. pantheios::log_NOTICE(pantheios::integer(i0, -5, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  866. pantheios::log_NOTICE(pantheios::integer(i1, -5, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  867. pantheios::log_NOTICE(pantheios::integer(i2, -5, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  868. pantheios::log_NOTICE(pantheios::integer(i0, -6, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  869. pantheios::log_NOTICE(pantheios::integer(i1, -6, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  870. pantheios::log_NOTICE(pantheios::integer(i2, -6, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  871. pantheios::log_NOTICE(pantheios::integer(i0, -7, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  872. pantheios::log_NOTICE(pantheios::integer(i1, -7, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  873. pantheios::log_NOTICE(pantheios::integer(i2, -7, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  874. pantheios::log_NOTICE(pantheios::integer(i0, -8, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  875. pantheios::log_NOTICE(pantheios::integer(i1, -8, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  876. pantheios::log_NOTICE(pantheios::integer(i2, -8, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  877. pantheios::log_NOTICE(pantheios::integer(i0, -9, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  878. pantheios::log_NOTICE(pantheios::integer(i1, -9, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  879. pantheios::log_NOTICE(pantheios::integer(i2, -9, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  880. pantheios::log_NOTICE(pantheios::integer(i0, -10, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  881. pantheios::log_NOTICE(pantheios::integer(i1, -10, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  882. pantheios::log_NOTICE(pantheios::integer(i2, -10, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  883. pantheios::log_NOTICE(pantheios::integer(i0, -11, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  884. pantheios::log_NOTICE(pantheios::integer(i1, -11, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  885. pantheios::log_NOTICE(pantheios::integer(i2, -11, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  886. pantheios::log_NOTICE(pantheios::integer(i0, -12, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  887. pantheios::log_NOTICE(pantheios::integer(i1, -12, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  888. pantheios::log_NOTICE(pantheios::integer(i2, -12, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  889. pantheios::log_NOTICE(pantheios::integer(i0, -13, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  890. pantheios::log_NOTICE(pantheios::integer(i1, -13, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  891. pantheios::log_NOTICE(pantheios::integer(i2, -13, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  892. pantheios::log_NOTICE(pantheios::integer(i0, -14, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  893. pantheios::log_NOTICE(pantheios::integer(i1, -14, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  894. pantheios::log_NOTICE(pantheios::integer(i2, -14, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  895. pantheios::log_NOTICE(pantheios::integer(i0, -15, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  896. pantheios::log_NOTICE(pantheios::integer(i1, -15, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  897. pantheios::log_NOTICE(pantheios::integer(i2, -15, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  898. pantheios::log_NOTICE(pantheios::integer(i0, -16, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  899. pantheios::log_NOTICE(pantheios::integer(i1, -16, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  900. pantheios::log_NOTICE(pantheios::integer(i2, -16, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  901. pantheios::log_NOTICE(pantheios::integer(i0, -17, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  902. pantheios::log_NOTICE(pantheios::integer(i1, -17, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  903. pantheios::log_NOTICE(pantheios::integer(i2, -17, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  904. pantheios::log_NOTICE(pantheios::integer(i0, -18, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  905. pantheios::log_NOTICE(pantheios::integer(i1, -18, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  906. pantheios::log_NOTICE(pantheios::integer(i2, -18, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  907. pantheios::log_NOTICE(pantheios::integer(i0, -19, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  908. pantheios::log_NOTICE(pantheios::integer(i1, -19, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  909. pantheios::log_NOTICE(pantheios::integer(i2, -19, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  910. pantheios::log_NOTICE(pantheios::integer(i0, -20, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  911. pantheios::log_NOTICE(pantheios::integer(i1, -20, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  912. pantheios::log_NOTICE(pantheios::integer(i2, -20, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  913. pantheios::log_NOTICE(pantheios::integer(i0, -21, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  914. pantheios::log_NOTICE(pantheios::integer(i1, -21, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  915. pantheios::log_NOTICE(pantheios::integer(i2, -21, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  916. pantheios::log_NOTICE(pantheios::integer(i0, -22, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  917. pantheios::log_NOTICE(pantheios::integer(i1, -22, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  918. pantheios::log_NOTICE(pantheios::integer(i2, -22, pantheios::fmt::zeroXPrefix | pantheios::fmt::hex));
  919. // 3. Verification
  920. pantheios::be::test::Results results = pantheios::be::test::results();
  921. XTESTS_TEST(!results.empty());
  922. XTESTS_REQUIRE(XTESTS_TEST_INTEGER_EQUAL(69u, results.size()));
  923. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[0].statement);
  924. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[1].statement);
  925. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[2].statement);
  926. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[3].statement);
  927. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[4].statement);
  928. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[5].statement);
  929. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[6].statement);
  930. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[7].statement);
  931. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[8].statement);
  932. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[9].statement);
  933. XTESTS_TEST_STRING_EQUAL(PSTR("0x1"), results[10].statement);
  934. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[11].statement);
  935. XTESTS_TEST_STRING_EQUAL(PSTR("0x0 "), results[12].statement);
  936. XTESTS_TEST_STRING_EQUAL(PSTR("0x1 "), results[13].statement);
  937. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[14].statement);
  938. XTESTS_TEST_STRING_EQUAL(PSTR("0x0 "), results[15].statement);
  939. XTESTS_TEST_STRING_EQUAL(PSTR("0x1 "), results[16].statement);
  940. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[17].statement);
  941. XTESTS_TEST_STRING_EQUAL(PSTR("0x0 "), results[18].statement);
  942. XTESTS_TEST_STRING_EQUAL(PSTR("0x1 "), results[19].statement);
  943. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[20].statement);
  944. XTESTS_TEST_STRING_EQUAL(PSTR("0x0 "), results[21].statement);
  945. XTESTS_TEST_STRING_EQUAL(PSTR("0x1 "), results[22].statement);
  946. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[23].statement);
  947. XTESTS_TEST_STRING_EQUAL(PSTR("0x0 "), results[24].statement);
  948. XTESTS_TEST_STRING_EQUAL(PSTR("0x1 "), results[25].statement);
  949. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[26].statement);
  950. XTESTS_TEST_STRING_EQUAL(PSTR("0x0 "), results[27].statement);
  951. XTESTS_TEST_STRING_EQUAL(PSTR("0x1 "), results[28].statement);
  952. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[29].statement);
  953. XTESTS_TEST_STRING_EQUAL(PSTR("0x0 "), results[30].statement);
  954. XTESTS_TEST_STRING_EQUAL(PSTR("0x1 "), results[31].statement);
  955. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[32].statement);
  956. XTESTS_TEST_STRING_EQUAL(PSTR("0x0 "), results[33].statement);
  957. XTESTS_TEST_STRING_EQUAL(PSTR("0x1 "), results[34].statement);
  958. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[35].statement);
  959. XTESTS_TEST_STRING_EQUAL(PSTR("0x0 "), results[36].statement);
  960. XTESTS_TEST_STRING_EQUAL(PSTR("0x1 "), results[37].statement);
  961. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[38].statement);
  962. XTESTS_TEST_STRING_EQUAL(PSTR("0x0 "), results[39].statement);
  963. XTESTS_TEST_STRING_EQUAL(PSTR("0x1 "), results[40].statement);
  964. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[41].statement);
  965. XTESTS_TEST_STRING_EQUAL(PSTR("0x0 "), results[42].statement);
  966. XTESTS_TEST_STRING_EQUAL(PSTR("0x1 "), results[43].statement);
  967. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[44].statement);
  968. XTESTS_TEST_STRING_EQUAL(PSTR("0x0 "), results[45].statement);
  969. XTESTS_TEST_STRING_EQUAL(PSTR("0x1 "), results[46].statement);
  970. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[47].statement);
  971. XTESTS_TEST_STRING_EQUAL(PSTR("0x0 "), results[48].statement);
  972. XTESTS_TEST_STRING_EQUAL(PSTR("0x1 "), results[49].statement);
  973. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[50].statement);
  974. XTESTS_TEST_STRING_EQUAL(PSTR("0x0 "), results[51].statement);
  975. XTESTS_TEST_STRING_EQUAL(PSTR("0x1 "), results[52].statement);
  976. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[53].statement);
  977. XTESTS_TEST_STRING_EQUAL(PSTR("0x0 "), results[54].statement);
  978. XTESTS_TEST_STRING_EQUAL(PSTR("0x1 "), results[55].statement);
  979. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678"), results[56].statement);
  980. XTESTS_TEST_STRING_EQUAL(PSTR("0x0 "), results[57].statement);
  981. XTESTS_TEST_STRING_EQUAL(PSTR("0x1 "), results[58].statement);
  982. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678 "), results[59].statement);
  983. XTESTS_TEST_STRING_EQUAL(PSTR("0x0 "), results[60].statement);
  984. XTESTS_TEST_STRING_EQUAL(PSTR("0x1 "), results[61].statement);
  985. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678 "), results[62].statement);
  986. XTESTS_TEST_STRING_EQUAL(PSTR("0x0 "), results[63].statement);
  987. XTESTS_TEST_STRING_EQUAL(PSTR("0x1 "), results[64].statement);
  988. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678 "), results[65].statement);
  989. XTESTS_TEST_STRING_EQUAL(PSTR("0x0 "), results[66].statement);
  990. XTESTS_TEST_STRING_EQUAL(PSTR("0x1 "), results[67].statement);
  991. XTESTS_TEST_STRING_EQUAL(PSTR("0x1234567812345678 "), results[68].statement);
  992. #endif /* STLSOFT_CF_64BIT_INT_SUPPORT */
  993. }
  994. static void test_1_11()
  995. {
  996. #ifdef STLSOFT_CF_64BIT_INT_SUPPORT
  997. // 1. Setup
  998. pantheios::be::test::reset();
  999. // 2. Create test data
  1000. pantheios::sint64_t i0 = static_cast<pantheios::sint64_t>(0);
  1001. pantheios::sint64_t i1 = static_cast<pantheios::sint64_t>(1);
  1002. pantheios::sint64_t i2 = static_cast<pantheios::sint64_t>(STLSOFT_GEN_UINT64_SUFFIX(1234567812345678));
  1003. pantheios::log_NOTICE(pantheios::integer(i0));
  1004. pantheios::log_NOTICE(pantheios::integer(i1));
  1005. pantheios::log_NOTICE(pantheios::integer(i2));
  1006. pantheios::log_NOTICE(pantheios::integer(i0, -1));
  1007. pantheios::log_NOTICE(pantheios::integer(i1, -1));
  1008. pantheios::log_NOTICE(pantheios::integer(i2, -1));
  1009. pantheios::log_NOTICE(pantheios::integer(i0, -2));
  1010. pantheios::log_NOTICE(pantheios::integer(i1, -2));
  1011. pantheios::log_NOTICE(pantheios::integer(i2, -2));
  1012. pantheios::log_NOTICE(pantheios::integer(i0, -3));
  1013. pantheios::log_NOTICE(pantheios::integer(i1, -3));
  1014. pantheios::log_NOTICE(pantheios::integer(i2, -3));
  1015. pantheios::log_NOTICE(pantheios::integer(i0, -4));
  1016. pantheios::log_NOTICE(pantheios::integer(i1, -4));
  1017. pantheios::log_NOTICE(pantheios::integer(i2, -4));
  1018. pantheios::log_NOTICE(pantheios::integer(i0, -5));
  1019. pantheios::log_NOTICE(pantheios::integer(i1, -5));
  1020. pantheios::log_NOTICE(pantheios::integer(i2, -5));
  1021. pantheios::log_NOTICE(pantheios::integer(i0, -6));
  1022. pantheios::log_NOTICE(pantheios::integer(i1, -6));
  1023. pantheios::log_NOTICE(pantheios::integer(i2, -6));
  1024. pantheios::log_NOTICE(pantheios::integer(i0, -7));
  1025. pantheios::log_NOTICE(pantheios::integer(i1, -7));
  1026. pantheios::log_NOTICE(pantheios::integer(i2, -7));
  1027. pantheios::log_NOTICE(pantheios::integer(i0, -8));
  1028. pantheios::log_NOTICE(pantheios::integer(i1, -8));
  1029. pantheios::log_NOTICE(pantheios::integer(i2, -8));
  1030. pantheios::log_NOTICE(pantheios::integer(i0, -9));
  1031. pantheios::log_NOTICE(pantheios::integer(i1, -9));
  1032. pantheios::log_NOTICE(pantheios::integer(i2, -9));
  1033. pantheios::log_NOTICE(pantheios::integer(i0, -10));
  1034. pantheios::log_NOTICE(pantheios::integer(i1, -10));
  1035. pantheios::log_NOTICE(pantheios::integer(i2, -10));
  1036. pantheios::log_NOTICE(pantheios::integer(i0, -11));
  1037. pantheios::log_NOTICE(pantheios::integer(i1, -11));
  1038. pantheios::log_NOTICE(pantheios::integer(i2, -11));
  1039. pantheios::log_NOTICE(pantheios::integer(i0, -12));
  1040. pantheios::log_NOTICE(pantheios::integer(i1, -12));
  1041. pantheios::log_NOTICE(pantheios::integer(i2, -12));
  1042. pantheios::log_NOTICE(pantheios::integer(i0, -13));
  1043. pantheios::log_NOTICE(pantheios::integer(i1, -13));
  1044. pantheios::log_NOTICE(pantheios::integer(i2, -13));
  1045. pantheios::log_NOTICE(pantheios::integer(i0, -14));
  1046. pantheios::log_NOTICE(pantheios::integer(i1, -14));
  1047. pantheios::log_NOTICE(pantheios::integer(i2, -14));
  1048. pantheios::log_NOTICE(pantheios::integer(i0, -15));
  1049. pantheios::log_NOTICE(pantheios::integer(i1, -15));
  1050. pantheios::log_NOTICE(pantheios::integer(i2, -15));
  1051. pantheios::log_NOTICE(pantheios::integer(i0, -16));
  1052. pantheios::log_NOTICE(pantheios::integer(i1, -16));
  1053. pantheios::log_NOTICE(pantheios::integer(i2, -16));
  1054. pantheios::log_NOTICE(pantheios::integer(i0, -17));
  1055. pantheios::log_NOTICE(pantheios::integer(i1, -17));
  1056. pantheios::log_NOTICE(pantheios::integer(i2, -17));
  1057. pantheios::log_NOTICE(pantheios::integer(i0, -18));
  1058. pantheios::log_NOTICE(pantheios::integer(i1, -18));
  1059. pantheios::log_NOTICE(pantheios::integer(i2, -18));
  1060. pantheios::log_NOTICE(pantheios::integer(i0, -19));
  1061. pantheios::log_NOTICE(pantheios::integer(i1, -19));
  1062. pantheios::log_NOTICE(pantheios::integer(i2, -19));
  1063. pantheios::log_NOTICE(pantheios::integer(i0, -20));
  1064. pantheios::log_NOTICE(pantheios::integer(i1, -20));
  1065. pantheios::log_NOTICE(pantheios::integer(i2, -20));
  1066. pantheios::log_NOTICE(pantheios::integer(i0, -21));
  1067. pantheios::log_NOTICE(pantheios::integer(i1, -21));
  1068. pantheios::log_NOTICE(pantheios::integer(i2, -21));
  1069. pantheios::log_NOTICE(pantheios::integer(i0, -22));
  1070. pantheios::log_NOTICE(pantheios::integer(i1, -22));
  1071. pantheios::log_NOTICE(pantheios::integer(i2, -22));
  1072. // 3. Verification
  1073. pantheios::be::test::Results results = pantheios::be::test::results();
  1074. XTESTS_TEST(!results.empty());
  1075. XTESTS_REQUIRE(XTESTS_TEST_INTEGER_EQUAL(69u, results.size()));
  1076. XTESTS_TEST_STRING_EQUAL(PSTR("0"), results[0].statement);
  1077. XTESTS_TEST_STRING_EQUAL(PSTR("1"), results[1].statement);
  1078. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[2].statement);
  1079. XTESTS_TEST_STRING_EQUAL(PSTR("0"), results[3].statement);
  1080. XTESTS_TEST_STRING_EQUAL(PSTR("1"), results[4].statement);
  1081. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[5].statement);
  1082. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[6].statement);
  1083. XTESTS_TEST_STRING_EQUAL(PSTR("1 "), results[7].statement);
  1084. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[8].statement);
  1085. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[9].statement);
  1086. XTESTS_TEST_STRING_EQUAL(PSTR("1 "), results[10].statement);
  1087. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[11].statement);
  1088. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[12].statement);
  1089. XTESTS_TEST_STRING_EQUAL(PSTR("1 "), results[13].statement);
  1090. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[14].statement);
  1091. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[15].statement);
  1092. XTESTS_TEST_STRING_EQUAL(PSTR("1 "), results[16].statement);
  1093. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[17].statement);
  1094. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[18].statement);
  1095. XTESTS_TEST_STRING_EQUAL(PSTR("1 "), results[19].statement);
  1096. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[20].statement);
  1097. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[21].statement);
  1098. XTESTS_TEST_STRING_EQUAL(PSTR("1 "), results[22].statement);
  1099. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[23].statement);
  1100. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[24].statement);
  1101. XTESTS_TEST_STRING_EQUAL(PSTR("1 "), results[25].statement);
  1102. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[26].statement);
  1103. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[27].statement);
  1104. XTESTS_TEST_STRING_EQUAL(PSTR("1 "), results[28].statement);
  1105. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[29].statement);
  1106. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[30].statement);
  1107. XTESTS_TEST_STRING_EQUAL(PSTR("1 "), results[31].statement);
  1108. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[32].statement);
  1109. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[33].statement);
  1110. XTESTS_TEST_STRING_EQUAL(PSTR("1 "), results[34].statement);
  1111. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[35].statement);
  1112. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[36].statement);
  1113. XTESTS_TEST_STRING_EQUAL(PSTR("1 "), results[37].statement);
  1114. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[38].statement);
  1115. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[39].statement);
  1116. XTESTS_TEST_STRING_EQUAL(PSTR("1 "), results[40].statement);
  1117. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[41].statement);
  1118. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[42].statement);
  1119. XTESTS_TEST_STRING_EQUAL(PSTR("1 "), results[43].statement);
  1120. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[44].statement);
  1121. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[45].statement);
  1122. XTESTS_TEST_STRING_EQUAL(PSTR("1 "), results[46].statement);
  1123. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[47].statement);
  1124. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[48].statement);
  1125. XTESTS_TEST_STRING_EQUAL(PSTR("1 "), results[49].statement);
  1126. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[50].statement);
  1127. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[51].statement);
  1128. XTESTS_TEST_STRING_EQUAL(PSTR("1 "), results[52].statement);
  1129. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678 "), results[53].statement);
  1130. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[54].statement);
  1131. XTESTS_TEST_STRING_EQUAL(PSTR("1 "), results[55].statement);
  1132. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678 "), results[56].statement);
  1133. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[57].statement);
  1134. XTESTS_TEST_STRING_EQUAL(PSTR("1 "), results[58].statement);
  1135. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678 "), results[59].statement);
  1136. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[60].statement);
  1137. XTESTS_TEST_STRING_EQUAL(PSTR("1 "), results[61].statement);
  1138. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678 "), results[62].statement);
  1139. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[63].statement);
  1140. XTESTS_TEST_STRING_EQUAL(PSTR("1 "), results[64].statement);
  1141. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678 "), results[65].statement);
  1142. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[66].statement);
  1143. XTESTS_TEST_STRING_EQUAL(PSTR("1 "), results[67].statement);
  1144. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678 "), results[68].statement);
  1145. #endif /* STLSOFT_CF_64BIT_INT_SUPPORT */
  1146. }
  1147. static void test_1_12()
  1148. {
  1149. #ifdef STLSOFT_CF_64BIT_INT_SUPPORT
  1150. // 1. Setup
  1151. pantheios::be::test::reset();
  1152. // 2. Create test data
  1153. pantheios::sint64_t i0 = static_cast<pantheios::sint64_t>(0);
  1154. pantheios::sint64_t i1 = static_cast<pantheios::sint64_t>(1);
  1155. pantheios::sint64_t i2 = static_cast<pantheios::sint64_t>(STLSOFT_GEN_UINT64_SUFFIX(1234567812345678));
  1156. pantheios::log_NOTICE(pantheios::integer(i0));
  1157. pantheios::log_NOTICE(pantheios::integer(i1));
  1158. pantheios::log_NOTICE(pantheios::integer(i2));
  1159. pantheios::log_NOTICE(pantheios::integer(i0, 1));
  1160. pantheios::log_NOTICE(pantheios::integer(i1, 1));
  1161. pantheios::log_NOTICE(pantheios::integer(i2, 1));
  1162. pantheios::log_NOTICE(pantheios::integer(i0, 2));
  1163. pantheios::log_NOTICE(pantheios::integer(i1, 2));
  1164. pantheios::log_NOTICE(pantheios::integer(i2, 2));
  1165. pantheios::log_NOTICE(pantheios::integer(i0, 3));
  1166. pantheios::log_NOTICE(pantheios::integer(i1, 3));
  1167. pantheios::log_NOTICE(pantheios::integer(i2, 3));
  1168. pantheios::log_NOTICE(pantheios::integer(i0, 4));
  1169. pantheios::log_NOTICE(pantheios::integer(i1, 4));
  1170. pantheios::log_NOTICE(pantheios::integer(i2, 4));
  1171. pantheios::log_NOTICE(pantheios::integer(i0, 5));
  1172. pantheios::log_NOTICE(pantheios::integer(i1, 5));
  1173. pantheios::log_NOTICE(pantheios::integer(i2, 5));
  1174. pantheios::log_NOTICE(pantheios::integer(i0, 6));
  1175. pantheios::log_NOTICE(pantheios::integer(i1, 6));
  1176. pantheios::log_NOTICE(pantheios::integer(i2, 6));
  1177. pantheios::log_NOTICE(pantheios::integer(i0, 7));
  1178. pantheios::log_NOTICE(pantheios::integer(i1, 7));
  1179. pantheios::log_NOTICE(pantheios::integer(i2, 7));
  1180. pantheios::log_NOTICE(pantheios::integer(i0, 8));
  1181. pantheios::log_NOTICE(pantheios::integer(i1, 8));
  1182. pantheios::log_NOTICE(pantheios::integer(i2, 8));
  1183. pantheios::log_NOTICE(pantheios::integer(i0, 9));
  1184. pantheios::log_NOTICE(pantheios::integer(i1, 9));
  1185. pantheios::log_NOTICE(pantheios::integer(i2, 9));
  1186. pantheios::log_NOTICE(pantheios::integer(i0, 10));
  1187. pantheios::log_NOTICE(pantheios::integer(i1, 10));
  1188. pantheios::log_NOTICE(pantheios::integer(i2, 10));
  1189. pantheios::log_NOTICE(pantheios::integer(i0, 11));
  1190. pantheios::log_NOTICE(pantheios::integer(i1, 11));
  1191. pantheios::log_NOTICE(pantheios::integer(i2, 11));
  1192. pantheios::log_NOTICE(pantheios::integer(i0, 12));
  1193. pantheios::log_NOTICE(pantheios::integer(i1, 12));
  1194. pantheios::log_NOTICE(pantheios::integer(i2, 12));
  1195. pantheios::log_NOTICE(pantheios::integer(i0, 13));
  1196. pantheios::log_NOTICE(pantheios::integer(i1, 13));
  1197. pantheios::log_NOTICE(pantheios::integer(i2, 13));
  1198. pantheios::log_NOTICE(pantheios::integer(i0, 14));
  1199. pantheios::log_NOTICE(pantheios::integer(i1, 14));
  1200. pantheios::log_NOTICE(pantheios::integer(i2, 14));
  1201. pantheios::log_NOTICE(pantheios::integer(i0, 15));
  1202. pantheios::log_NOTICE(pantheios::integer(i1, 15));
  1203. pantheios::log_NOTICE(pantheios::integer(i2, 15));
  1204. pantheios::log_NOTICE(pantheios::integer(i0, 16));
  1205. pantheios::log_NOTICE(pantheios::integer(i1, 16));
  1206. pantheios::log_NOTICE(pantheios::integer(i2, 16));
  1207. pantheios::log_NOTICE(pantheios::integer(i0, 17));
  1208. pantheios::log_NOTICE(pantheios::integer(i1, 17));
  1209. pantheios::log_NOTICE(pantheios::integer(i2, 17));
  1210. pantheios::log_NOTICE(pantheios::integer(i0, 18));
  1211. pantheios::log_NOTICE(pantheios::integer(i1, 18));
  1212. pantheios::log_NOTICE(pantheios::integer(i2, 18));
  1213. pantheios::log_NOTICE(pantheios::integer(i0, 19));
  1214. pantheios::log_NOTICE(pantheios::integer(i1, 19));
  1215. pantheios::log_NOTICE(pantheios::integer(i2, 19));
  1216. pantheios::log_NOTICE(pantheios::integer(i0, 20));
  1217. pantheios::log_NOTICE(pantheios::integer(i1, 20));
  1218. pantheios::log_NOTICE(pantheios::integer(i2, 20));
  1219. pantheios::log_NOTICE(pantheios::integer(i0, 21));
  1220. pantheios::log_NOTICE(pantheios::integer(i1, 21));
  1221. pantheios::log_NOTICE(pantheios::integer(i2, 21));
  1222. pantheios::log_NOTICE(pantheios::integer(i0, 22));
  1223. pantheios::log_NOTICE(pantheios::integer(i1, 22));
  1224. pantheios::log_NOTICE(pantheios::integer(i2, 22));
  1225. // 3. Verification
  1226. pantheios::be::test::Results results = pantheios::be::test::results();
  1227. XTESTS_TEST(!results.empty());
  1228. XTESTS_REQUIRE(XTESTS_TEST_INTEGER_EQUAL(69u, results.size()));
  1229. XTESTS_TEST_STRING_EQUAL(PSTR("0"), results[0].statement);
  1230. XTESTS_TEST_STRING_EQUAL(PSTR("1"), results[1].statement);
  1231. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[2].statement);
  1232. XTESTS_TEST_STRING_EQUAL(PSTR("0"), results[3].statement);
  1233. XTESTS_TEST_STRING_EQUAL(PSTR("1"), results[4].statement);
  1234. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[5].statement);
  1235. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[6].statement);
  1236. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[7].statement);
  1237. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[8].statement);
  1238. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[9].statement);
  1239. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[10].statement);
  1240. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[11].statement);
  1241. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[12].statement);
  1242. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[13].statement);
  1243. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[14].statement);
  1244. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[15].statement);
  1245. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[16].statement);
  1246. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[17].statement);
  1247. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[18].statement);
  1248. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[19].statement);
  1249. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[20].statement);
  1250. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[21].statement);
  1251. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[22].statement);
  1252. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[23].statement);
  1253. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[24].statement);
  1254. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[25].statement);
  1255. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[26].statement);
  1256. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[27].statement);
  1257. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[28].statement);
  1258. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[29].statement);
  1259. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[30].statement);
  1260. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[31].statement);
  1261. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[32].statement);
  1262. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[33].statement);
  1263. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[34].statement);
  1264. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[35].statement);
  1265. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[36].statement);
  1266. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[37].statement);
  1267. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[38].statement);
  1268. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[39].statement);
  1269. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[40].statement);
  1270. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[41].statement);
  1271. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[42].statement);
  1272. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[43].statement);
  1273. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[44].statement);
  1274. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[45].statement);
  1275. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[46].statement);
  1276. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[47].statement);
  1277. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[48].statement);
  1278. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[49].statement);
  1279. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[50].statement);
  1280. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[51].statement);
  1281. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[52].statement);
  1282. XTESTS_TEST_STRING_EQUAL(PSTR(" 1234567812345678"), results[53].statement);
  1283. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[54].statement);
  1284. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[55].statement);
  1285. XTESTS_TEST_STRING_EQUAL(PSTR(" 1234567812345678"), results[56].statement);
  1286. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[57].statement);
  1287. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[58].statement);
  1288. XTESTS_TEST_STRING_EQUAL(PSTR(" 1234567812345678"), results[59].statement);
  1289. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[60].statement);
  1290. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[61].statement);
  1291. XTESTS_TEST_STRING_EQUAL(PSTR(" 1234567812345678"), results[62].statement);
  1292. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[63].statement);
  1293. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[64].statement);
  1294. XTESTS_TEST_STRING_EQUAL(PSTR(" 1234567812345678"), results[65].statement);
  1295. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[66].statement);
  1296. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[67].statement);
  1297. XTESTS_TEST_STRING_EQUAL(PSTR(" 1234567812345678"), results[68].statement);
  1298. #endif /* STLSOFT_CF_64BIT_INT_SUPPORT */
  1299. }
  1300. static void test_1_13()
  1301. {
  1302. #ifdef STLSOFT_CF_64BIT_INT_SUPPORT
  1303. // 1. Setup
  1304. pantheios::be::test::reset();
  1305. // 2. Create test data
  1306. pantheios::sint64_t i0 = static_cast<pantheios::sint64_t>(0);
  1307. pantheios::sint64_t i1 = static_cast<pantheios::sint64_t>(1);
  1308. pantheios::sint64_t i2 = -static_cast<pantheios::sint64_t>(STLSOFT_GEN_UINT64_SUFFIX(1234567812345678));
  1309. pantheios::log_NOTICE(pantheios::integer(i0));
  1310. pantheios::log_NOTICE(pantheios::integer(i1));
  1311. pantheios::log_NOTICE(pantheios::integer(i2));
  1312. pantheios::log_NOTICE(pantheios::integer(i0, 1));
  1313. pantheios::log_NOTICE(pantheios::integer(i1, 1));
  1314. pantheios::log_NOTICE(pantheios::integer(i2, 1));
  1315. pantheios::log_NOTICE(pantheios::integer(i0, 2));
  1316. pantheios::log_NOTICE(pantheios::integer(i1, 2));
  1317. pantheios::log_NOTICE(pantheios::integer(i2, 2));
  1318. pantheios::log_NOTICE(pantheios::integer(i0, 3));
  1319. pantheios::log_NOTICE(pantheios::integer(i1, 3));
  1320. pantheios::log_NOTICE(pantheios::integer(i2, 3));
  1321. pantheios::log_NOTICE(pantheios::integer(i0, 4));
  1322. pantheios::log_NOTICE(pantheios::integer(i1, 4));
  1323. pantheios::log_NOTICE(pantheios::integer(i2, 4));
  1324. pantheios::log_NOTICE(pantheios::integer(i0, 5));
  1325. pantheios::log_NOTICE(pantheios::integer(i1, 5));
  1326. pantheios::log_NOTICE(pantheios::integer(i2, 5));
  1327. pantheios::log_NOTICE(pantheios::integer(i0, 6));
  1328. pantheios::log_NOTICE(pantheios::integer(i1, 6));
  1329. pantheios::log_NOTICE(pantheios::integer(i2, 6));
  1330. pantheios::log_NOTICE(pantheios::integer(i0, 7));
  1331. pantheios::log_NOTICE(pantheios::integer(i1, 7));
  1332. pantheios::log_NOTICE(pantheios::integer(i2, 7));
  1333. pantheios::log_NOTICE(pantheios::integer(i0, 8));
  1334. pantheios::log_NOTICE(pantheios::integer(i1, 8));
  1335. pantheios::log_NOTICE(pantheios::integer(i2, 8));
  1336. pantheios::log_NOTICE(pantheios::integer(i0, 9));
  1337. pantheios::log_NOTICE(pantheios::integer(i1, 9));
  1338. pantheios::log_NOTICE(pantheios::integer(i2, 9));
  1339. pantheios::log_NOTICE(pantheios::integer(i0, 10));
  1340. pantheios::log_NOTICE(pantheios::integer(i1, 10));
  1341. pantheios::log_NOTICE(pantheios::integer(i2, 10));
  1342. pantheios::log_NOTICE(pantheios::integer(i0, 11));
  1343. pantheios::log_NOTICE(pantheios::integer(i1, 11));
  1344. pantheios::log_NOTICE(pantheios::integer(i2, 11));
  1345. pantheios::log_NOTICE(pantheios::integer(i0, 12));
  1346. pantheios::log_NOTICE(pantheios::integer(i1, 12));
  1347. pantheios::log_NOTICE(pantheios::integer(i2, 12));
  1348. pantheios::log_NOTICE(pantheios::integer(i0, 13));
  1349. pantheios::log_NOTICE(pantheios::integer(i1, 13));
  1350. pantheios::log_NOTICE(pantheios::integer(i2, 13));
  1351. pantheios::log_NOTICE(pantheios::integer(i0, 14));
  1352. pantheios::log_NOTICE(pantheios::integer(i1, 14));
  1353. pantheios::log_NOTICE(pantheios::integer(i2, 14));
  1354. pantheios::log_NOTICE(pantheios::integer(i0, 15));
  1355. pantheios::log_NOTICE(pantheios::integer(i1, 15));
  1356. pantheios::log_NOTICE(pantheios::integer(i2, 15));
  1357. pantheios::log_NOTICE(pantheios::integer(i0, 16));
  1358. pantheios::log_NOTICE(pantheios::integer(i1, 16));
  1359. pantheios::log_NOTICE(pantheios::integer(i2, 16));
  1360. pantheios::log_NOTICE(pantheios::integer(i0, 17));
  1361. pantheios::log_NOTICE(pantheios::integer(i1, 17));
  1362. pantheios::log_NOTICE(pantheios::integer(i2, 17));
  1363. pantheios::log_NOTICE(pantheios::integer(i0, 18));
  1364. pantheios::log_NOTICE(pantheios::integer(i1, 18));
  1365. pantheios::log_NOTICE(pantheios::integer(i2, 18));
  1366. pantheios::log_NOTICE(pantheios::integer(i0, 19));
  1367. pantheios::log_NOTICE(pantheios::integer(i1, 19));
  1368. pantheios::log_NOTICE(pantheios::integer(i2, 19));
  1369. pantheios::log_NOTICE(pantheios::integer(i0, 20));
  1370. pantheios::log_NOTICE(pantheios::integer(i1, 20));
  1371. pantheios::log_NOTICE(pantheios::integer(i2, 20));
  1372. pantheios::log_NOTICE(pantheios::integer(i0, 21));
  1373. pantheios::log_NOTICE(pantheios::integer(i1, 21));
  1374. pantheios::log_NOTICE(pantheios::integer(i2, 21));
  1375. pantheios::log_NOTICE(pantheios::integer(i0, 22));
  1376. pantheios::log_NOTICE(pantheios::integer(i1, 22));
  1377. pantheios::log_NOTICE(pantheios::integer(i2, 22));
  1378. // 3. Verification
  1379. pantheios::be::test::Results results = pantheios::be::test::results();
  1380. XTESTS_TEST(!results.empty());
  1381. XTESTS_REQUIRE(XTESTS_TEST_INTEGER_EQUAL(69u, results.size()));
  1382. XTESTS_TEST_STRING_EQUAL(PSTR("0"), results[0].statement);
  1383. XTESTS_TEST_STRING_EQUAL(PSTR("1"), results[1].statement);
  1384. XTESTS_TEST_STRING_EQUAL(PSTR("-1234567812345678"), results[2].statement);
  1385. XTESTS_TEST_STRING_EQUAL(PSTR("0"), results[3].statement);
  1386. XTESTS_TEST_STRING_EQUAL(PSTR("1"), results[4].statement);
  1387. XTESTS_TEST_STRING_EQUAL(PSTR("-1234567812345678"), results[5].statement);
  1388. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[6].statement);
  1389. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[7].statement);
  1390. XTESTS_TEST_STRING_EQUAL(PSTR("-1234567812345678"), results[8].statement);
  1391. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[9].statement);
  1392. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[10].statement);
  1393. XTESTS_TEST_STRING_EQUAL(PSTR("-1234567812345678"), results[11].statement);
  1394. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[12].statement);
  1395. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[13].statement);
  1396. XTESTS_TEST_STRING_EQUAL(PSTR("-1234567812345678"), results[14].statement);
  1397. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[15].statement);
  1398. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[16].statement);
  1399. XTESTS_TEST_STRING_EQUAL(PSTR("-1234567812345678"), results[17].statement);
  1400. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[18].statement);
  1401. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[19].statement);
  1402. XTESTS_TEST_STRING_EQUAL(PSTR("-1234567812345678"), results[20].statement);
  1403. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[21].statement);
  1404. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[22].statement);
  1405. XTESTS_TEST_STRING_EQUAL(PSTR("-1234567812345678"), results[23].statement);
  1406. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[24].statement);
  1407. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[25].statement);
  1408. XTESTS_TEST_STRING_EQUAL(PSTR("-1234567812345678"), results[26].statement);
  1409. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[27].statement);
  1410. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[28].statement);
  1411. XTESTS_TEST_STRING_EQUAL(PSTR("-1234567812345678"), results[29].statement);
  1412. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[30].statement);
  1413. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[31].statement);
  1414. XTESTS_TEST_STRING_EQUAL(PSTR("-1234567812345678"), results[32].statement);
  1415. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[33].statement);
  1416. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[34].statement);
  1417. XTESTS_TEST_STRING_EQUAL(PSTR("-1234567812345678"), results[35].statement);
  1418. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[36].statement);
  1419. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[37].statement);
  1420. XTESTS_TEST_STRING_EQUAL(PSTR("-1234567812345678"), results[38].statement);
  1421. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[39].statement);
  1422. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[40].statement);
  1423. XTESTS_TEST_STRING_EQUAL(PSTR("-1234567812345678"), results[41].statement);
  1424. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[42].statement);
  1425. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[43].statement);
  1426. XTESTS_TEST_STRING_EQUAL(PSTR("-1234567812345678"), results[44].statement);
  1427. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[45].statement);
  1428. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[46].statement);
  1429. XTESTS_TEST_STRING_EQUAL(PSTR("-1234567812345678"), results[47].statement);
  1430. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[48].statement);
  1431. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[49].statement);
  1432. XTESTS_TEST_STRING_EQUAL(PSTR("-1234567812345678"), results[50].statement);
  1433. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[51].statement);
  1434. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[52].statement);
  1435. XTESTS_TEST_STRING_EQUAL(PSTR("-1234567812345678"), results[53].statement);
  1436. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[54].statement);
  1437. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[55].statement);
  1438. XTESTS_TEST_STRING_EQUAL(PSTR(" -1234567812345678"), results[56].statement);
  1439. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[57].statement);
  1440. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[58].statement);
  1441. XTESTS_TEST_STRING_EQUAL(PSTR(" -1234567812345678"), results[59].statement);
  1442. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[60].statement);
  1443. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[61].statement);
  1444. XTESTS_TEST_STRING_EQUAL(PSTR(" -1234567812345678"), results[62].statement);
  1445. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[63].statement);
  1446. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[64].statement);
  1447. XTESTS_TEST_STRING_EQUAL(PSTR(" -1234567812345678"), results[65].statement);
  1448. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[66].statement);
  1449. XTESTS_TEST_STRING_EQUAL(PSTR(" 1"), results[67].statement);
  1450. XTESTS_TEST_STRING_EQUAL(PSTR(" -1234567812345678"), results[68].statement);
  1451. #endif /* STLSOFT_CF_64BIT_INT_SUPPORT */
  1452. }
  1453. static void test_1_14()
  1454. {
  1455. #ifdef STLSOFT_CF_64BIT_INT_SUPPORT
  1456. // 1. Setup
  1457. pantheios::be::test::reset();
  1458. // 2. Create test data
  1459. pantheios::sint8_t i0 = static_cast<pantheios::sint8_t>(-127);
  1460. pantheios::uint8_t i1 = static_cast<pantheios::uint8_t>(11);
  1461. pantheios::sint16_t i2 = static_cast<pantheios::sint16_t>(-300);
  1462. pantheios::uint16_t i3 = static_cast<pantheios::uint16_t>(0);
  1463. pantheios::sint32_t i4 = static_cast<pantheios::sint32_t>(-100000);
  1464. pantheios::uint32_t i5 = static_cast<pantheios::sint32_t>(+123456);
  1465. pantheios::sint64_t i6 = -static_cast<pantheios::sint64_t>(STLSOFT_GEN_UINT64_SUFFIX(1234567812345678));
  1466. pantheios::uint64_t i7 = static_cast<pantheios::uint64_t>(STLSOFT_GEN_UINT64_SUFFIX(1234567812345678));
  1467. pantheios::log_NOTICE(pantheios::integer(i0));
  1468. pantheios::log_NOTICE(pantheios::integer(i1));
  1469. pantheios::log_NOTICE(pantheios::integer(i2));
  1470. pantheios::log_NOTICE(pantheios::integer(i3));
  1471. pantheios::log_NOTICE(pantheios::integer(i4));
  1472. pantheios::log_NOTICE(pantheios::integer(i5));
  1473. pantheios::log_NOTICE(pantheios::integer(i6));
  1474. pantheios::log_NOTICE(pantheios::integer(i7));
  1475. pantheios::log_NOTICE(pantheios::integer(i0, +10, 0));
  1476. pantheios::log_NOTICE(pantheios::integer(i1, +10, 0));
  1477. pantheios::log_NOTICE(pantheios::integer(i2, +10, 0));
  1478. pantheios::log_NOTICE(pantheios::integer(i3, +10, 0));
  1479. pantheios::log_NOTICE(pantheios::integer(i4, +10, 0));
  1480. pantheios::log_NOTICE(pantheios::integer(i5, +10, 0));
  1481. pantheios::log_NOTICE(pantheios::integer(i6, +10, 0));
  1482. pantheios::log_NOTICE(pantheios::integer(i7, +10, 0));
  1483. pantheios::log_NOTICE(pantheios::integer(i0, -10, 0));
  1484. pantheios::log_NOTICE(pantheios::integer(i1, -10, 0));
  1485. pantheios::log_NOTICE(pantheios::integer(i2, -10, 0));
  1486. pantheios::log_NOTICE(pantheios::integer(i3, -10, 0));
  1487. pantheios::log_NOTICE(pantheios::integer(i4, -10, 0));
  1488. pantheios::log_NOTICE(pantheios::integer(i5, -10, 0));
  1489. pantheios::log_NOTICE(pantheios::integer(i6, -10, 0));
  1490. pantheios::log_NOTICE(pantheios::integer(i7, -10, 0));
  1491. pantheios::log_NOTICE(pantheios::integer(i0, +20, 0));
  1492. pantheios::log_NOTICE(pantheios::integer(i1, +20, 0));
  1493. pantheios::log_NOTICE(pantheios::integer(i2, +20, 0));
  1494. pantheios::log_NOTICE(pantheios::integer(i3, +20, 0));
  1495. pantheios::log_NOTICE(pantheios::integer(i4, +20, 0));
  1496. pantheios::log_NOTICE(pantheios::integer(i5, +20, 0));
  1497. pantheios::log_NOTICE(pantheios::integer(i6, +20, 0));
  1498. pantheios::log_NOTICE(pantheios::integer(i7, +20, 0));
  1499. pantheios::log_NOTICE(pantheios::integer(i0, -20, 0));
  1500. pantheios::log_NOTICE(pantheios::integer(i1, -20, 0));
  1501. pantheios::log_NOTICE(pantheios::integer(i2, -20, 0));
  1502. pantheios::log_NOTICE(pantheios::integer(i3, -20, 0));
  1503. pantheios::log_NOTICE(pantheios::integer(i4, -20, 0));
  1504. pantheios::log_NOTICE(pantheios::integer(i5, -20, 0));
  1505. pantheios::log_NOTICE(pantheios::integer(i6, -20, 0));
  1506. pantheios::log_NOTICE(pantheios::integer(i7, -20, 0));
  1507. pantheios::log_NOTICE(pantheios::integer(i0, 0, pantheios::fmt::hex));
  1508. pantheios::log_NOTICE(pantheios::integer(i1, 0, pantheios::fmt::hex));
  1509. pantheios::log_NOTICE(pantheios::integer(i2, 0, pantheios::fmt::hex));
  1510. pantheios::log_NOTICE(pantheios::integer(i3, 0, pantheios::fmt::hex));
  1511. pantheios::log_NOTICE(pantheios::integer(i4, 0, pantheios::fmt::hex));
  1512. pantheios::log_NOTICE(pantheios::integer(i5, 0, pantheios::fmt::hex));
  1513. pantheios::log_NOTICE(pantheios::integer(i6, 0, pantheios::fmt::hex));
  1514. pantheios::log_NOTICE(pantheios::integer(i7, 0, pantheios::fmt::hex));
  1515. pantheios::log_NOTICE(pantheios::integer(i0, 0, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1516. pantheios::log_NOTICE(pantheios::integer(i1, 0, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1517. pantheios::log_NOTICE(pantheios::integer(i2, 0, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1518. pantheios::log_NOTICE(pantheios::integer(i3, 0, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1519. pantheios::log_NOTICE(pantheios::integer(i4, 0, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1520. pantheios::log_NOTICE(pantheios::integer(i5, 0, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1521. pantheios::log_NOTICE(pantheios::integer(i6, 0, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1522. pantheios::log_NOTICE(pantheios::integer(i7, 0, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1523. pantheios::log_NOTICE(pantheios::integer(i0, 2, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1524. pantheios::log_NOTICE(pantheios::integer(i1, 2, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1525. pantheios::log_NOTICE(pantheios::integer(i2, 4, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1526. pantheios::log_NOTICE(pantheios::integer(i3, 4, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1527. pantheios::log_NOTICE(pantheios::integer(i4, 8, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1528. pantheios::log_NOTICE(pantheios::integer(i5, 8, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1529. pantheios::log_NOTICE(pantheios::integer(i6, 16, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1530. pantheios::log_NOTICE(pantheios::integer(i7, 16, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1531. pantheios::log_NOTICE(pantheios::integer(i0, 0, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1532. pantheios::log_NOTICE(pantheios::integer(i1, 0, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1533. pantheios::log_NOTICE(pantheios::integer(i2, 0, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1534. pantheios::log_NOTICE(pantheios::integer(i3, 0, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1535. pantheios::log_NOTICE(pantheios::integer(i4, 0, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1536. pantheios::log_NOTICE(pantheios::integer(i5, 0, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1537. pantheios::log_NOTICE(pantheios::integer(i6, 0, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1538. pantheios::log_NOTICE(pantheios::integer(i7, 0, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1539. pantheios::log_NOTICE(pantheios::integer(i0, 2, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1540. pantheios::log_NOTICE(pantheios::integer(i1, 2, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1541. pantheios::log_NOTICE(pantheios::integer(i2, 4, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1542. pantheios::log_NOTICE(pantheios::integer(i3, 4, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1543. pantheios::log_NOTICE(pantheios::integer(i4, 8, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1544. pantheios::log_NOTICE(pantheios::integer(i5, 8, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1545. pantheios::log_NOTICE(pantheios::integer(i6, 16, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1546. pantheios::log_NOTICE(pantheios::integer(i7, 16, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1547. pantheios::log_NOTICE(pantheios::integer(i0, 4, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1548. pantheios::log_NOTICE(pantheios::integer(i1, 4, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1549. pantheios::log_NOTICE(pantheios::integer(i2, 6, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1550. pantheios::log_NOTICE(pantheios::integer(i3, 6, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1551. pantheios::log_NOTICE(pantheios::integer(i4, 10, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1552. pantheios::log_NOTICE(pantheios::integer(i5, 10, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1553. pantheios::log_NOTICE(pantheios::integer(i6, 18, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1554. pantheios::log_NOTICE(pantheios::integer(i7, 18, pantheios::fmt::hex | pantheios::fmt::zeroXPrefix));
  1555. pantheios::log_NOTICE(pantheios::integer(i0, 2, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1556. pantheios::log_NOTICE(pantheios::integer(i1, 2, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1557. pantheios::log_NOTICE(pantheios::integer(i2, 4, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1558. pantheios::log_NOTICE(pantheios::integer(i3, 4, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1559. pantheios::log_NOTICE(pantheios::integer(i4, 8, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1560. pantheios::log_NOTICE(pantheios::integer(i5, 8, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1561. pantheios::log_NOTICE(pantheios::integer(i6, 16, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1562. pantheios::log_NOTICE(pantheios::integer(i7, 16, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1563. pantheios::log_NOTICE(pantheios::integer(i0, 2, pantheios::fmt::fullHex));
  1564. pantheios::log_NOTICE(pantheios::integer(i1, 2, pantheios::fmt::fullHex));
  1565. pantheios::log_NOTICE(pantheios::integer(i2, 4, pantheios::fmt::fullHex));
  1566. pantheios::log_NOTICE(pantheios::integer(i3, 4, pantheios::fmt::fullHex));
  1567. pantheios::log_NOTICE(pantheios::integer(i4, 8, pantheios::fmt::fullHex));
  1568. pantheios::log_NOTICE(pantheios::integer(i5, 8, pantheios::fmt::fullHex));
  1569. pantheios::log_NOTICE(pantheios::integer(i6, 16, pantheios::fmt::fullHex));
  1570. pantheios::log_NOTICE(pantheios::integer(i7, 16, pantheios::fmt::fullHex));
  1571. pantheios::log_NOTICE(pantheios::integer(i0, 4, pantheios::fmt::fullHex));
  1572. pantheios::log_NOTICE(pantheios::integer(i1, 4, pantheios::fmt::fullHex));
  1573. pantheios::log_NOTICE(pantheios::integer(i2, 6, pantheios::fmt::fullHex));
  1574. pantheios::log_NOTICE(pantheios::integer(i3, 6, pantheios::fmt::fullHex));
  1575. pantheios::log_NOTICE(pantheios::integer(i4, 10, pantheios::fmt::fullHex));
  1576. pantheios::log_NOTICE(pantheios::integer(i5, 10, pantheios::fmt::fullHex));
  1577. pantheios::log_NOTICE(pantheios::integer(i6, 18, pantheios::fmt::fullHex));
  1578. pantheios::log_NOTICE(pantheios::integer(i7, 18, pantheios::fmt::fullHex));
  1579. // 3. Verification
  1580. pantheios::be::test::Results results = pantheios::be::test::results();
  1581. XTESTS_TEST(!results.empty());
  1582. XTESTS_REQUIRE(XTESTS_TEST_INTEGER_EQUAL(112u, results.size()));
  1583. size_t base = 0;
  1584. XTESTS_TEST_STRING_EQUAL(PSTR("-127"), results[base + 0].statement);
  1585. XTESTS_TEST_STRING_EQUAL(PSTR("11"), results[base + 1].statement);
  1586. XTESTS_TEST_STRING_EQUAL(PSTR("-300"), results[base + 2].statement);
  1587. XTESTS_TEST_STRING_EQUAL(PSTR("0"), results[base + 3].statement);
  1588. XTESTS_TEST_STRING_EQUAL(PSTR("-100000"), results[base + 4].statement);
  1589. XTESTS_TEST_STRING_EQUAL(PSTR("123456"), results[base + 5].statement);
  1590. XTESTS_TEST_STRING_EQUAL(PSTR("-1234567812345678"), results[base + 6].statement);
  1591. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[base + 7].statement);
  1592. base += 8;
  1593. XTESTS_TEST_STRING_EQUAL(PSTR(" -127"), results[base + 0].statement);
  1594. XTESTS_TEST_STRING_EQUAL(PSTR(" 11"), results[base + 1].statement);
  1595. XTESTS_TEST_STRING_EQUAL(PSTR(" -300"), results[base + 2].statement);
  1596. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[base + 3].statement);
  1597. XTESTS_TEST_STRING_EQUAL(PSTR(" -100000"), results[base + 4].statement);
  1598. XTESTS_TEST_STRING_EQUAL(PSTR(" 123456"), results[base + 5].statement);
  1599. XTESTS_TEST_STRING_EQUAL(PSTR("-1234567812345678"), results[base + 6].statement);
  1600. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[base + 7].statement);
  1601. base += 8;
  1602. XTESTS_TEST_STRING_EQUAL(PSTR("-127 "), results[base + 0].statement);
  1603. XTESTS_TEST_STRING_EQUAL(PSTR("11 "), results[base + 1].statement);
  1604. XTESTS_TEST_STRING_EQUAL(PSTR("-300 "), results[base + 2].statement);
  1605. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[base + 3].statement);
  1606. XTESTS_TEST_STRING_EQUAL(PSTR("-100000 "), results[base + 4].statement);
  1607. XTESTS_TEST_STRING_EQUAL(PSTR("123456 "), results[base + 5].statement);
  1608. XTESTS_TEST_STRING_EQUAL(PSTR("-1234567812345678"), results[base + 6].statement);
  1609. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678"), results[base + 7].statement);
  1610. base += 8;
  1611. XTESTS_TEST_STRING_EQUAL(PSTR(" -127"), results[base + 0].statement);
  1612. XTESTS_TEST_STRING_EQUAL(PSTR(" 11"), results[base + 1].statement);
  1613. XTESTS_TEST_STRING_EQUAL(PSTR(" -300"), results[base + 2].statement);
  1614. XTESTS_TEST_STRING_EQUAL(PSTR(" 0"), results[base + 3].statement);
  1615. XTESTS_TEST_STRING_EQUAL(PSTR(" -100000"), results[base + 4].statement);
  1616. XTESTS_TEST_STRING_EQUAL(PSTR(" 123456"), results[base + 5].statement);
  1617. XTESTS_TEST_STRING_EQUAL(PSTR(" -1234567812345678"), results[base + 6].statement);
  1618. XTESTS_TEST_STRING_EQUAL(PSTR(" 1234567812345678"), results[base + 7].statement);
  1619. base += 8;
  1620. XTESTS_TEST_STRING_EQUAL(PSTR("-127 "), results[base + 0].statement);
  1621. XTESTS_TEST_STRING_EQUAL(PSTR("11 "), results[base + 1].statement);
  1622. XTESTS_TEST_STRING_EQUAL(PSTR("-300 "), results[base + 2].statement);
  1623. XTESTS_TEST_STRING_EQUAL(PSTR("0 "), results[base + 3].statement);
  1624. XTESTS_TEST_STRING_EQUAL(PSTR("-100000 "), results[base + 4].statement);
  1625. XTESTS_TEST_STRING_EQUAL(PSTR("123456 "), results[base + 5].statement);
  1626. XTESTS_TEST_STRING_EQUAL(PSTR("-1234567812345678 "), results[base + 6].statement);
  1627. XTESTS_TEST_STRING_EQUAL(PSTR("1234567812345678 "), results[base + 7].statement);
  1628. base += 8;
  1629. XTESTS_TEST_STRING_EQUAL(PSTR("81"), results[base + 0].statement);
  1630. XTESTS_TEST_STRING_EQUAL(PSTR("b"), results[base + 1].statement);
  1631. XTESTS_TEST_STRING_EQUAL(PSTR("fed4"), results[base + 2].statement);
  1632. XTESTS_TEST_STRING_EQUAL(PSTR("0"), results[base + 3].statement);
  1633. XTESTS_TEST_STRING_EQUAL(PSTR("fffe7960"), results[base + 4].statement);
  1634. XTESTS_TEST_STRING_EQUAL(PSTR("1e240"), results[base + 5].statement);
  1635. XTESTS_TEST_STRING_EQUAL(PSTR("fffb9d2ac81810b2"), results[base + 6].statement);
  1636. XTESTS_TEST_STRING_EQUAL(PSTR("462d537e7ef4e"), results[base + 7].statement);
  1637. base += 8;
  1638. XTESTS_TEST_STRING_EQUAL(PSTR("81"), results[base + 0].statement);
  1639. XTESTS_TEST_STRING_EQUAL(PSTR("b"), results[base + 1].statement);
  1640. XTESTS_TEST_STRING_EQUAL(PSTR("fed4"), results[base + 2].statement);
  1641. XTESTS_TEST_STRING_EQUAL(PSTR("0"), results[base + 3].statement);
  1642. XTESTS_TEST_STRING_EQUAL(PSTR("fffe7960"), results[base + 4].statement);
  1643. XTESTS_TEST_STRING_EQUAL(PSTR("1e240"), results[base + 5].statement);
  1644. XTESTS_TEST_STRING_EQUAL(PSTR("fffb9d2ac81810b2"), results[base + 6].statement);
  1645. XTESTS_TEST_STRING_EQUAL(PSTR("462d537e7ef4e"), results[base + 7].statement);
  1646. base += 8;
  1647. XTESTS_TEST_STRING_EQUAL(PSTR("81"), results[base + 0].statement);
  1648. XTESTS_TEST_STRING_EQUAL(PSTR("0b"), results[base + 1].statement);
  1649. XTESTS_TEST_STRING_EQUAL(PSTR("fed4"), results[base + 2].statement);
  1650. XTESTS_TEST_STRING_EQUAL(PSTR("0000"), results[base + 3].statement);
  1651. XTESTS_TEST_STRING_EQUAL(PSTR("fffe7960"), results[base + 4].statement);
  1652. XTESTS_TEST_STRING_EQUAL(PSTR("0001e240"), results[base + 5].statement);
  1653. XTESTS_TEST_STRING_EQUAL(PSTR("fffb9d2ac81810b2"), results[base + 6].statement);
  1654. XTESTS_TEST_STRING_EQUAL(PSTR("000462d537e7ef4e"), results[base + 7].statement);
  1655. base += 8;
  1656. XTESTS_TEST_STRING_EQUAL(PSTR("0x81"), results[base + 0].statement);
  1657. XTESTS_TEST_STRING_EQUAL(PSTR("0xb"), results[base + 1].statement);
  1658. XTESTS_TEST_STRING_EQUAL(PSTR("0xfed4"), results[base + 2].statement);
  1659. XTESTS_TEST_STRING_EQUAL(PSTR("0x0"), results[base + 3].statement);
  1660. XTESTS_TEST_STRING_EQUAL(PSTR("0xfffe7960"), results[base + 4].statement);
  1661. XTESTS_TEST_STRING_EQUAL(PSTR("0x1e240"), results[base + 5].statement);
  1662. XTESTS_TEST_STRING_EQUAL(PSTR("0xfffb9d2ac81810b2"), results[base + 6].statement);
  1663. XTESTS_TEST_STRING_EQUAL(PSTR("0x462d537e7ef4e"), results[base + 7].statement);
  1664. base += 8;
  1665. XTESTS_TEST_STRING_EQUAL(PSTR("0x81"), results[base + 0].statement);
  1666. XTESTS_TEST_STRING_EQUAL(PSTR("0xb"), results[base + 1].statement);
  1667. XTESTS_TEST_STRING_EQUAL(PSTR("0xfed4"), results[base + 2].statement);
  1668. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[base + 3].statement);
  1669. XTESTS_TEST_STRING_EQUAL(PSTR("0xfffe7960"), results[base + 4].statement);
  1670. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1e240"), results[base + 5].statement);
  1671. XTESTS_TEST_STRING_EQUAL(PSTR("0xfffb9d2ac81810b2"), results[base + 6].statement);
  1672. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x462d537e7ef4e"), results[base + 7].statement);
  1673. base += 8;
  1674. XTESTS_TEST_STRING_EQUAL(PSTR("0x81"), results[base + 0].statement);
  1675. XTESTS_TEST_STRING_EQUAL(PSTR(" 0xb"), results[base + 1].statement);
  1676. XTESTS_TEST_STRING_EQUAL(PSTR("0xfed4"), results[base + 2].statement);
  1677. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x0"), results[base + 3].statement);
  1678. XTESTS_TEST_STRING_EQUAL(PSTR("0xfffe7960"), results[base + 4].statement);
  1679. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x1e240"), results[base + 5].statement);
  1680. XTESTS_TEST_STRING_EQUAL(PSTR("0xfffb9d2ac81810b2"), results[base + 6].statement);
  1681. XTESTS_TEST_STRING_EQUAL(PSTR(" 0x462d537e7ef4e"), results[base + 7].statement);
  1682. base += 8;
  1683. XTESTS_TEST_STRING_EQUAL(PSTR("81"), results[base + 0].statement);
  1684. XTESTS_TEST_STRING_EQUAL(PSTR("0b"), results[base + 1].statement);
  1685. XTESTS_TEST_STRING_EQUAL(PSTR("fed4"), results[base + 2].statement);
  1686. XTESTS_TEST_STRING_EQUAL(PSTR("0000"), results[base + 3].statement);
  1687. XTESTS_TEST_STRING_EQUAL(PSTR("fffe7960"), results[base + 4].statement);
  1688. XTESTS_TEST_STRING_EQUAL(PSTR("0001e240"), results[base + 5].statement);
  1689. XTESTS_TEST_STRING_EQUAL(PSTR("fffb9d2ac81810b2"), results[base + 6].statement);
  1690. XTESTS_TEST_STRING_EQUAL(PSTR("000462d537e7ef4e"), results[base + 7].statement);
  1691. base += 8;
  1692. XTESTS_TEST_STRING_EQUAL(PSTR("0x81"), results[base + 0].statement);
  1693. XTESTS_TEST_STRING_EQUAL(PSTR("0xb"), results[base + 1].statement);
  1694. XTESTS_TEST_STRING_EQUAL(PSTR("0xfed4"), results[base + 2].statement);
  1695. XTESTS_TEST_STRING_EQUAL(PSTR("0x00"), results[base + 3].statement);
  1696. XTESTS_TEST_STRING_EQUAL(PSTR("0xfffe7960"), results[base + 4].statement);
  1697. XTESTS_TEST_STRING_EQUAL(PSTR("0x01e240"), results[base + 5].statement);
  1698. XTESTS_TEST_STRING_EQUAL(PSTR("0xfffb9d2ac81810b2"), results[base + 6].statement);
  1699. XTESTS_TEST_STRING_EQUAL(PSTR("0x0462d537e7ef4e"), results[base + 7].statement);
  1700. base += 8;
  1701. XTESTS_TEST_STRING_EQUAL(PSTR("0x81"), results[base + 0].statement);
  1702. XTESTS_TEST_STRING_EQUAL(PSTR("0x0b"), results[base + 1].statement);
  1703. XTESTS_TEST_STRING_EQUAL(PSTR("0xfed4"), results[base + 2].statement);
  1704. XTESTS_TEST_STRING_EQUAL(PSTR("0x0000"), results[base + 3].statement);
  1705. XTESTS_TEST_STRING_EQUAL(PSTR("0xfffe7960"), results[base + 4].statement);
  1706. XTESTS_TEST_STRING_EQUAL(PSTR("0x0001e240"), results[base + 5].statement);
  1707. XTESTS_TEST_STRING_EQUAL(PSTR("0xfffb9d2ac81810b2"), results[base + 6].statement);
  1708. XTESTS_TEST_STRING_EQUAL(PSTR("0x000462d537e7ef4e"), results[base + 7].statement);
  1709. #endif /* STLSOFT_CF_64BIT_INT_SUPPORT */
  1710. }
  1711. static void test_1_15()
  1712. {
  1713. // 1. Setup
  1714. pantheios::be::test::reset();
  1715. // 2. Create test data
  1716. pantheios::log_NOTICE(pantheios::integer( 15));
  1717. pantheios::log_NOTICE(pantheios::integer(-15));
  1718. pantheios::log_NOTICE(pantheios::integer( 15, 0, 0));
  1719. pantheios::log_NOTICE(pantheios::integer(-15, 0, 0));
  1720. pantheios::log_NOTICE(pantheios::integer( 15, 1, 0));
  1721. pantheios::log_NOTICE(pantheios::integer(-15, 1, 0));
  1722. pantheios::log_NOTICE(pantheios::integer( 15, 2, 0));
  1723. pantheios::log_NOTICE(pantheios::integer(-15, 2, 0));
  1724. pantheios::log_NOTICE(pantheios::integer( 15, 3, 0));
  1725. pantheios::log_NOTICE(pantheios::integer(-15, 3, 0));
  1726. pantheios::log_NOTICE(pantheios::integer( 15, -3, 0));
  1727. pantheios::log_NOTICE(pantheios::integer(-15, -3, 0));
  1728. pantheios::log_NOTICE(pantheios::integer( 15, 4, 0));
  1729. pantheios::log_NOTICE(pantheios::integer(-15, 4, 0));
  1730. pantheios::log_NOTICE(pantheios::integer( 15, -4, 0));
  1731. pantheios::log_NOTICE(pantheios::integer(-15, -4, 0));
  1732. pantheios::log_NOTICE(pantheios::integer( 15, 4, pantheios::fmt::zeroPad));
  1733. pantheios::log_NOTICE(pantheios::integer(-15, 4, pantheios::fmt::zeroPad));
  1734. pantheios::log_NOTICE(pantheios::integer( 15, -4, pantheios::fmt::zeroPad));
  1735. pantheios::log_NOTICE(pantheios::integer(-15, -4, pantheios::fmt::zeroPad));
  1736. pantheios::log_NOTICE(pantheios::integer( 15 , 0, pantheios::fmt::hex));
  1737. pantheios::log_NOTICE(pantheios::integer( stlsoft::sint8_t(-15), 0, pantheios::fmt::hex));
  1738. pantheios::log_NOTICE(pantheios::integer(stlsoft::sint16_t(-15), 0, pantheios::fmt::hex));
  1739. pantheios::log_NOTICE(pantheios::integer(stlsoft::sint32_t(-15), 0, pantheios::fmt::hex));
  1740. pantheios::log_NOTICE(pantheios::integer(stlsoft::sint64_t(-15), 0, pantheios::fmt::hex));
  1741. pantheios::log_NOTICE(pantheios::integer( 15 , 2, pantheios::fmt::hex));
  1742. pantheios::log_NOTICE(pantheios::integer( stlsoft::sint8_t(-15), 2, pantheios::fmt::hex));
  1743. pantheios::log_NOTICE(pantheios::integer(stlsoft::sint16_t(-15), 2, pantheios::fmt::hex));
  1744. pantheios::log_NOTICE(pantheios::integer(stlsoft::sint32_t(-15), 2, pantheios::fmt::hex));
  1745. pantheios::log_NOTICE(pantheios::integer(stlsoft::sint64_t(-15), 2, pantheios::fmt::hex));
  1746. pantheios::log_NOTICE(pantheios::integer( 15 , 2, pantheios::fmt::hex));
  1747. pantheios::log_NOTICE(pantheios::integer( stlsoft::sint8_t(-15), 2, pantheios::fmt::hex));
  1748. pantheios::log_NOTICE(pantheios::integer(stlsoft::sint16_t(-15), 4, pantheios::fmt::hex));
  1749. pantheios::log_NOTICE(pantheios::integer(stlsoft::sint32_t(-15), 8, pantheios::fmt::hex));
  1750. pantheios::log_NOTICE(pantheios::integer(stlsoft::sint64_t(-15), 16, pantheios::fmt::hex));
  1751. pantheios::log_NOTICE(pantheios::integer( 15 , 16, pantheios::fmt::hex));
  1752. pantheios::log_NOTICE(pantheios::integer( stlsoft::sint8_t(-15), 16, pantheios::fmt::hex));
  1753. pantheios::log_NOTICE(pantheios::integer(stlsoft::sint16_t(-15), 16, pantheios::fmt::hex));
  1754. pantheios::log_NOTICE(pantheios::integer(stlsoft::sint32_t(-15), 16, pantheios::fmt::hex));
  1755. pantheios::log_NOTICE(pantheios::integer(stlsoft::sint64_t(-15), 16, pantheios::fmt::hex));
  1756. pantheios::log_NOTICE(pantheios::integer( 15 , 16, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1757. pantheios::log_NOTICE(pantheios::integer( stlsoft::sint8_t(-15), 16, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1758. pantheios::log_NOTICE(pantheios::integer(stlsoft::sint16_t(-15), 16, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1759. pantheios::log_NOTICE(pantheios::integer(stlsoft::sint32_t(-15), 16, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1760. pantheios::log_NOTICE(pantheios::integer(stlsoft::sint64_t(-15), 16, pantheios::fmt::hex | pantheios::fmt::zeroPad));
  1761. // 3. Verification
  1762. pantheios::be::test::Results results = pantheios::be::test::results();
  1763. XTESTS_TEST(!results.empty());
  1764. // XTESTS_REQUIRE(XTESTS_TEST_INTEGER_EQUAL(80u, results.size()));
  1765. size_t base = 0;
  1766. XTESTS_TEST_STRING_EQUAL(PSTR("15"), results[base++].statement);
  1767. XTESTS_TEST_STRING_EQUAL(PSTR("-15"), results[base++].statement);
  1768. XTESTS_TEST_STRING_EQUAL(PSTR("15"), results[base++].statement);
  1769. XTESTS_TEST_STRING_EQUAL(PSTR("-15"), results[base++].statement);
  1770. XTESTS_TEST_STRING_EQUAL(PSTR("15"), results[base++].statement);
  1771. XTESTS_TEST_STRING_EQUAL(PSTR("-15"), results[base++].statement);
  1772. XTESTS_TEST_STRING_EQUAL(PSTR("15"), results[base++].statement);
  1773. XTESTS_TEST_STRING_EQUAL(PSTR("-15"), results[base++].statement);
  1774. XTESTS_TEST_STRING_EQUAL(PSTR(" 15"), results[base++].statement);
  1775. XTESTS_TEST_STRING_EQUAL(PSTR("-15"), results[base++].statement);
  1776. XTESTS_TEST_STRING_EQUAL(PSTR("15 "), results[base++].statement);
  1777. XTESTS_TEST_STRING_EQUAL(PSTR("-15"), results[base++].statement);
  1778. XTESTS_TEST_STRING_EQUAL(PSTR(" 15"), results[base++].statement);
  1779. XTESTS_TEST_STRING_EQUAL(PSTR(" -15"), results[base++].statement);
  1780. XTESTS_TEST_STRING_EQUAL(PSTR("15 "), results[base++].statement);
  1781. XTESTS_TEST_STRING_EQUAL(PSTR("-15 "), results[base++].statement);
  1782. XTESTS_TEST_STRING_EQUAL(PSTR("0015"), results[base++].statement);
  1783. XTESTS_TEST_STRING_EQUAL(PSTR("-015"), results[base++].statement);
  1784. XTESTS_TEST_STRING_EQUAL(PSTR("15 "), results[base++].statement);
  1785. XTESTS_TEST_STRING_EQUAL(PSTR("-15 "), results[base++].statement);
  1786. XTESTS_TEST_STRING_EQUAL(PSTR("f"), results[base++].statement);
  1787. XTESTS_TEST_STRING_EQUAL(PSTR("f1"), results[base++].statement);
  1788. XTESTS_TEST_STRING_EQUAL(PSTR("fff1"), results[base++].statement);
  1789. XTESTS_TEST_STRING_EQUAL(PSTR("fffffff1"), results[base++].statement);
  1790. XTESTS_TEST_STRING_EQUAL(PSTR("fffffffffffffff1"), results[base++].statement);
  1791. XTESTS_TEST_STRING_EQUAL(PSTR(" f"), results[base++].statement);
  1792. XTESTS_TEST_STRING_EQUAL(PSTR("f1"), results[base++].statement);
  1793. XTESTS_TEST_STRING_EQUAL(PSTR("fff1"), results[base++].statement);
  1794. XTESTS_TEST_STRING_EQUAL(PSTR("fffffff1"), results[base++].statement);
  1795. XTESTS_TEST_STRING_EQUAL(PSTR("fffffffffffffff1"), results[base++].statement);
  1796. XTESTS_TEST_STRING_EQUAL(PSTR(" f"), results[base++].statement);
  1797. XTESTS_TEST_STRING_EQUAL(PSTR("f1"), results[base++].statement);
  1798. XTESTS_TEST_STRING_EQUAL(PSTR("fff1"), results[base++].statement);
  1799. XTESTS_TEST_STRING_EQUAL(PSTR("fffffff1"), results[base++].statement);
  1800. XTESTS_TEST_STRING_EQUAL(PSTR("fffffffffffffff1"), results[base++].statement);
  1801. XTESTS_TEST_STRING_EQUAL(PSTR(" f"), results[base++].statement);
  1802. XTESTS_TEST_STRING_EQUAL(PSTR(" f1"), results[base++].statement);
  1803. XTESTS_TEST_STRING_EQUAL(PSTR(" fff1"), results[base++].statement);
  1804. XTESTS_TEST_STRING_EQUAL(PSTR(" fffffff1"), results[base++].statement);
  1805. XTESTS_TEST_STRING_EQUAL(PSTR("fffffffffffffff1"), results[base++].statement);
  1806. XTESTS_TEST_STRING_EQUAL(PSTR("000000000000000f"), results[base++].statement);
  1807. XTESTS_TEST_STRING_EQUAL(PSTR("00000000000000f1"), results[base++].statement);
  1808. XTESTS_TEST_STRING_EQUAL(PSTR("000000000000fff1"), results[base++].statement);
  1809. XTESTS_TEST_STRING_EQUAL(PSTR("00000000fffffff1"), results[base++].statement);
  1810. XTESTS_TEST_STRING_EQUAL(PSTR("fffffffffffffff1"), results[base++].statement);
  1811. }
  1812. /* ///////////////////////////// end of file //////////////////////////// */