From 3f79bfee1e6f888f0355671baf615e4437b6c5f7 Mon Sep 17 00:00:00 2001 From: Louis Rubet Date: Tue, 2 May 2017 10:55:12 +0200 Subject: [PATCH] #3: testing general functions --- test/general.txt | 55 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 test/general.txt diff --git a/test/general.txt b/test/general.txt new file mode 100644 index 0000000..b574695 --- /dev/null +++ b/test/general.txt @@ -0,0 +1,55 @@ +## GENERAL + +# std +erase +1 +10 std +-> stack should be 1 + +3 / +-> stack should be 0.3333333333 + +3 std +-> stack should be 0.333 + +# fix +drop +10 fix +1 +-> stack should be 1.0000000000 + +4 fix +-> stack should be 1.0000 + +# sci +12 sci +-> stack should be 1.000000000000e+00 + +2 sci +-> stack should be 1.00e+00 +drop + +# version +version +->stack size should be 1 + +uname +->stack size should be 2 + +erase + +# type +1 +type +-> stack should be 'number' +drop + +"hey" +type +-> stack should be 'string' +drop + +<< -> n << n >> >> +type +-> stack should be 'program' +drop