コード例 #1
0
ファイル: test_interpret.py プロジェクト: recrm/Udebs
 def test_call(self):
     assert interpret("negative testing one two") == "TEST('negative','one','two','three',none=50,test=10,value='empty')"
コード例 #2
0
ファイル: test_interpret.py プロジェクト: recrm/Udebs
 def test_global(self):
     assert interpret("one $target") == "('one',standard.getvar(storage,'target'))"
コード例 #3
0
ファイル: test_interpret.py プロジェクト: recrm/Udebs
 def test_dot(self):
     assert interpret("one two one.two.three") == interpret("one two (one two three)")
コード例 #4
0
ファイル: test_interpret.py プロジェクト: recrm/Udebs
 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
ファイル: test_interpret.py プロジェクト: recrm/Udebs
 def test_solitary(self):
     assert interpret("one in (solitary)") == "standard.inside('one',solitary())"
コード例 #6
0
ファイル: test_interpret.py プロジェクト: recrm/Udebs
 def test_redundant(self):
     assert interpret("one two three") == interpret("(one two three)") == interpret("((one two three))")
コード例 #7
0
ファイル: test_interpret.py プロジェクト: recrm/Udebs
 def test_Syntax4(self):
     interpret("max one in two")
コード例 #8
0
ファイル: test_interpret.py プロジェクト: recrm/Udebs
 def test_Syntax3(Self):
     interpret("one in two unused")
コード例 #9
0
ファイル: test_interpret.py プロジェクト: recrm/Udebs
 def test_Syntax2(Self):
     interpret("this is a test(some more stuff)")
コード例 #10
0
ファイル: test_interpret.py プロジェクト: recrm/Udebs
 def test_Syntax(self):
     interpret("(one two (three)")
コード例 #11
0
ファイル: test_interpret.py プロジェクト: recrm/Udebs
 def test_list(self):
     assert interpret("one two three") == "('one','two','three')"
     assert interpret("1 2 three") == "(1,2,'three')"