aboutsummaryrefslogtreecommitdiff
path: root/src/unit/basic.unit
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2011-03-08 17:49:23 +0000
committerMike Buland <eichlan@xagasoft.com>2011-03-08 17:49:23 +0000
commitcd210c95a5a429293aa5c88965d3526116ba8723 (patch)
tree0a3d42cbdfa9f47c735d5436adf129616105eb44 /src/unit/basic.unit
parenta5009d2e8c0378180dd3aca39c10c1dc0af3a93e (diff)
downloadlibgats-cd210c95a5a429293aa5c88965d3526116ba8723.tar.gz
libgats-cd210c95a5a429293aa5c88965d3526116ba8723.tar.bz2
libgats-cd210c95a5a429293aa5c88965d3526116ba8723.tar.xz
libgats-cd210c95a5a429293aa5c88965d3526116ba8723.zip
The new float format is in place. The encoder/decoder may not be as fast right
now as it could be, but it is universal, which is preferable in many cases. We effectively use a normalized base-256 format to store the number, with a scale, also with a base of 256. Basically, with x86 doubles, the C99 standard textual, lossless hex encoding format is at max 23 bytes. This encoding is equivelent but at max 11 bytes, including the format specifier ('f').
Diffstat (limited to '')
-rw-r--r--src/unit/basic.unit2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unit/basic.unit b/src/unit/basic.unit
index 369e095..3ab8dc2 100644
--- a/src/unit/basic.unit
+++ b/src/unit/basic.unit
@@ -145,7 +145,7 @@ suite Basic
145 145
146 { 146 {
147 Gats::Dictionary dict; 147 Gats::Dictionary dict;
148 dict.insert("bool", true ); 148 dict.insert("bool", new Gats::Boolean(true) );
149 dict.insert("int", 33403055 ); 149 dict.insert("int", 33403055 );
150 dict.insert("str", "Hey there" ); 150 dict.insert("str", "Hey there" );
151 dict.write( mb ); 151 dict.write( mb );