Example #1
0
 def test_call(self):
     assert interpret("negative testing one two") == "TEST('negative','one','two','three',none=50,test=10,value='empty')"
Example #2
0
 def test_global(self):
     assert interpret("one $target") == "('one',standard.getvar(storage,'target'))"
Example #3
0
 def test_dot(self):
     assert interpret("one two one.two.three") == interpret("one two (one two three)")
Example #4
0
 def test_prefix(self):
     assert interpret("one two -three") == "('one','two',standard.minus(0,'three'))"
     assert interpret("-one.two.three") == "(standard.minus(0,'one'),'two','three')"
     assert interpret("-(one two three)") == "standard.minus(0,('one','two','three'))"
Example #5
0
 def test_solitary(self):
     assert interpret("one in (solitary)") == "standard.inside('one',solitary())"
Example #6
0
 def test_redundant(self):
     assert interpret("one two three") == interpret("(one two three)") == interpret("((one two three))")
Example #7
0
 def test_Syntax4(self):
     interpret("max one in two")
Example #8
0
 def test_Syntax3(Self):
     interpret("one in two unused")
Example #9
0
 def test_Syntax2(Self):
     interpret("this is a test(some more stuff)")
Example #10
0
 def test_Syntax(self):
     interpret("(one two (three)")
Example #11
0
 def test_list(self):
     assert interpret("one two three") == "('one','two','three')"
     assert interpret("1 2 three") == "(1,2,'three')"