X-Git-Url: https://git.llucax.com/z.facultad/75.29/dale.git/blobdiff_plain/7385becae132d9a5f62776a704a87c8d12138ccf..1f8bdb001e04d6d55673d293b4b6a1b1aeb7e7ba:/tests/number.cpp diff --git a/tests/number.cpp b/tests/number.cpp index 5e5e96c..75b97f0 100644 --- a/tests/number.cpp +++ b/tests/number.cpp @@ -3,23 +3,25 @@ int main() { -#if 0 - //unsigned buf[5] = { 0xfffffffe, 0xffffffff, 0xffffffff, 0xffffffff, 0 }; +#if 1 + unsigned buf[5] = { 0xffffffff, 0xffffffff, 0xffffffff, 0xffffffff, 0 }; //unsigned buf[3] = { 0xffffffff, 0x1, 0 }; - number< unsigned > nu = 0xffffffff; + number<> nu(buf, 4); //number< unsigned > nu2(nu); - number< unsigned > nu2 = 1u; + number<> nu2 = 1u; std::cout << "nu = " << nu << "\n\n"; std::cout << "nu2 = " << nu2 << "\n\n"; - std::cout << "nu + nu2 = " << nu + nu2 << "\n\n"; -#endif - - number< unsigned > nu = 0xffffffff; - std::cout << "nu = " << nu << "\n\n"; - - nu << 5; - std::cout << "nu = " << nu << "\n\n"; + std::cout << "nu + nu2 = " << nu + nu2 << "\n\n"; +#endif - return 0; +#if 0 + number< unsigned > nu = 0xffffffff; + std::cout << "nu = " << nu << "\n\n"; + + nu << 5; + std::cout << "nu = " << nu << "\n\n"; +#endif + + return 0; -} +}