summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2013-04-16 15:35:36 -0600
committerMike Buland <mike@xagasoft.com>2013-04-16 15:35:36 -0600
commit439c5a36138a66b0c76ec3136c79a86ca3619f17 (patch)
treed4f6cfbe9e9f880a5171e3964a658dc2f8968841 /src/main.cpp
parent800af3a90062284ef2a0b21d191a531a8e3ab30b (diff)
downloadclic-439c5a36138a66b0c76ec3136c79a86ca3619f17.tar.gz
clic-439c5a36138a66b0c76ec3136c79a86ca3619f17.tar.bz2
clic-439c5a36138a66b0c76ec3136c79a86ca3619f17.tar.xz
clic-439c5a36138a66b0c76ec3136c79a86ca3619f17.zip
Broke the string parser.
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 4454c08..0e5a77d 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -259,7 +259,7 @@ void ordertest()
259 259
260void radixtest() 260void radixtest()
261{ 261{
262 Number a( 16 ), b( 16 ); 262 Number a( 0, 16 ), b( 0, 16 );
263 263
264 a = "f8a72bce3"; 264 a = "f8a72bce3";
265 b = "9ea8cb3"; 265 b = "9ea8cb3";
@@ -276,6 +276,15 @@ void radixtest()
276 println("%1 * %2 = %3").arg( a ).arg( b ).arg( (a * b) ); 276 println("%1 * %2 = %3").arg( a ).arg( b ).arg( (a * b) );
277} 277}
278 278
279void fractest()
280{
281 Number a( 8 ), b( 8 );
282
283 a = "123.456";
284 b = "0.987";
285 println("%1 + %2 = %3").arg( a ).arg( b ).arg( a + b );
286}
287
279int main( int , char *[] ) 288int main( int , char *[] )
280{ 289{
281 println("CliC"); 290 println("CliC");
@@ -283,8 +292,8 @@ int main( int , char *[] )
283// packedtest1(); 292// packedtest1();
284// numbertest1(); 293// numbertest1();
285// numbertestcomp(); 294// numbertestcomp();
286 radixtest(); 295// radixtest();
287 296 fractest();
288// ordertest(); 297// ordertest();
289 298
290 return 0; 299 return 0;