From 8db6eccbd4678305bf7fcb66effa1a57d929db34 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Wed, 8 Jul 2020 17:02:34 -0400 Subject: Update tree structure --- tests/literal-test.tnsl | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'tests/literal-test.tnsl') diff --git a/tests/literal-test.tnsl b/tests/literal-test.tnsl index a7fd81e..b447e57 100644 --- a/tests/literal-test.tnsl +++ b/tests/literal-test.tnsl @@ -1,10 +1,27 @@ +# These should all work ;string s = "\"" ;string st="\\" ;int i = 0 ;int j=1 -;float f = .2 +;float f = 0.2 ;float d=3.1415 -;char c = '\'';char ch='\uxxxx' +;char c = '\'';char ch='\u0000' + +# Invalid (some may be weeded out through the verify phase): + +;string s "" + +;int 0 i + +# Invalid ops should also be detected if dealing with literals + +;char c ~= 's' + +# Debate over weather these are legal + +;int k = .1 + +;int l = 0x01 \ No newline at end of file -- cgit v1.2.3