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