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