From 1b797548dff7e2475826ba29a71c3f496008988f Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 14 Aug 2010 07:12:29 +0000 Subject: libgats gets it's own repo. The rest of the history is in my misc repo. --- src/tests/int.cpp | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 src/tests/int.cpp (limited to 'src/tests/int.cpp') diff --git a/src/tests/int.cpp b/src/tests/int.cpp new file mode 100644 index 0000000..5d5b7d2 --- /dev/null +++ b/src/tests/int.cpp @@ -0,0 +1,21 @@ +#include "gats/integer.h" + +#include +#include + +using namespace Bu; + +int main() +{ + MemBuf mb; + int64_t i = -53954321995838ll; + + sio << "Before: " << i << sio.nl; + Gats::Integer::writePackedInt( mb, i ); + mb.setPos( 0 ); + Gats::Integer::readPackedInt( mb, i ); + sio << "After: " << i << sio.nl; + + return 0; +} + -- cgit v1.2.3