예제 #1
0
파일: test_t.py 프로젝트: hermetique/dao
 def test4(self):
     eq_(teval('1+2;'), 3)
예제 #2
0
파일: test_t.py 프로젝트: chaosim/dao
 def test2_0(self):
   eq_(teval('+1 ; -1'), -1)
   eq_(teval('-123.5e-6; +1; -1'), -1)
   eq_(teval('"-1" ;  1'), 1)
예제 #3
0
파일: test_t.py 프로젝트: hermetique/dao
 def test2(self):
     eq_(teval('a; a;'), var('a'))
예제 #4
0
파일: test_t.py 프로젝트: hermetique/dao
 def test6(self):
     eq_(teval('i = 0; loop: i++; print i; if i==3: break'), None)
예제 #5
0
파일: test_t.py 프로젝트: hermetique/dao
 def test3(self):
     eq_(teval('fun a + (): print 1 a()'), None)
예제 #6
0
파일: test_t.py 프로젝트: hermetique/dao
 def test4(self):
     eq_(teval('case 1: of 1: print 1; of 2: print 2; else: print "other"'),
         None)
예제 #7
0
파일: test_t.py 프로젝트: hermetique/dao
 def test3(self):
     eq_(teval('i = 0; loop: print "loop";  i++ when i<3'), None)
예제 #8
0
파일: test_t.py 프로젝트: chaosim/dao
 def test1(self):
   eq_(teval('print 1'), None)
예제 #9
0
파일: test_t.py 프로젝트: chaosim/dao
 def test2(self):
   eq_(teval('let a = 1, b = 2 do: print a+b'), None)
예제 #10
0
파일: test_t.py 프로젝트: chaosim/dao
 def test5(self):
   eq_(teval('1+2*3;'), 7)
예제 #11
0
파일: test_t.py 프로젝트: chaosim/dao
 def test6(self):
   eq_(teval('a = 1; a--'), 0)
예제 #12
0
파일: test_t.py 프로젝트: chaosim/dao
 def test4(self):
   eq_(teval('1+2;'), 3)
예제 #13
0
파일: test_t.py 프로젝트: chaosim/dao
 def test3(self):
   eq_(teval('a = 1;'), 1)
   eq_(teval('a = b = 1;'), 1)
예제 #14
0
파일: test_t.py 프로젝트: chaosim/dao
 def test2(self):
   eq_(teval('a; a;'), var('a'))
예제 #15
0
파일: test_t.py 프로젝트: hermetique/dao
 def test6(self):
     eq_(teval('a = 1; a--'), 0)
예제 #16
0
파일: test_t.py 프로젝트: chaosim/dao
 def test3(self):
   eq_(teval('if 1: print 1; else: print "other"'), None)
예제 #17
0
파일: test_t.py 프로젝트: hermetique/dao
 def test2(self):
     eq_(teval('let a = 1, b = 2 do: print a+b'), None)
예제 #18
0
파일: test_t.py 프로젝트: chaosim/dao
 def test4(self):
   eq_(teval('case 1: of 1: print 1; of 2: print 2; else: print "other"'), None)
예제 #19
0
파일: test_t.py 프로젝트: hermetique/dao
 def test1(self):
     eq_(teval('loop: print "loop" by 3 times'), None)
예제 #20
0
파일: test_t.py 프로젝트: chaosim/dao
 def test5(self):
   eq_(teval('{1; print "a";}'), None)
예제 #21
0
파일: test_t.py 프로젝트: hermetique/dao
 def test5(self):
     eq_(teval('i = 0; while i<3: pass;  i++ '), None)
예제 #22
0
파일: test_t.py 프로젝트: chaosim/dao
 def test1(self):
   eq_(teval('loop: print "loop" by 3 times'), None)
예제 #23
0
파일: test_t.py 프로젝트: hermetique/dao
 def test1(self):
     eq_(teval('fun a: \n   (): print 1; \n   (x): print x \na()'), None)
예제 #24
0
파일: test_t.py 프로젝트: chaosim/dao
 def test2(self):
   eq_(teval('i = 0; loop: print "loop";  i++ until i==3'), None)
예제 #25
0
파일: test_t.py 프로젝트: hermetique/dao
 def test4(self):
     eq_(teval('fun - a/3'), None)
예제 #26
0
파일: test_t.py 프로젝트: chaosim/dao
 def test3(self):
   eq_(teval('i = 0; loop: print "loop";  i++ when i<3'), None)
예제 #27
0
파일: test_t.py 프로젝트: hermetique/dao
 def test2_0(self):
     eq_(teval('+1 ; -1'), -1)
     eq_(teval('-123.5e-6; +1; -1'), -1)
     eq_(teval('"-1" ;  1'), 1)
예제 #28
0
파일: test_t.py 프로젝트: chaosim/dao
 def test4(self):
   eq_(teval('i = 0; while i<3: print "loop";  i++'), None)
예제 #29
0
파일: test_t.py 프로젝트: hermetique/dao
 def test3(self):
     eq_(teval('a = 1;'), 1)
     eq_(teval('a = b = 1;'), 1)
예제 #30
0
파일: test_t.py 프로젝트: chaosim/dao
 def test5(self):
   eq_(teval('i = 0; while i<3: pass;  i++ '), None)
예제 #31
0
파일: test_t.py 프로젝트: hermetique/dao
 def test5(self):
     eq_(teval('1+2*3;'), 7)
예제 #32
0
파일: test_t.py 프로젝트: chaosim/dao
 def test6(self):
   eq_(teval('i = 0; loop: i++; print i; if i==3: break'), None)
예제 #33
0
파일: test_t.py 프로젝트: hermetique/dao
 def test1(self):
     eq_(teval('print 1'), None)
예제 #34
0
파일: test_t.py 프로젝트: chaosim/dao
 def test7(self):
   eq_(teval('i = 0; block: i++; print i; if i<3: redo'), None)
예제 #35
0
파일: test_t.py 프로젝트: hermetique/dao
 def test3(self):
     eq_(teval('if 1: print 1; else: print "other"'), None)
예제 #36
0
파일: test_t.py 프로젝트: chaosim/dao
 def test1(self):
   eq_(teval('fun a: \n   (): print 1; \n   (x): print x \na()'), None)
예제 #37
0
파일: test_t.py 프로젝트: hermetique/dao
 def test5(self):
     eq_(teval('{1; print "a";}'), None)
예제 #38
0
파일: test_t.py 프로젝트: chaosim/dao
 def test2(self):
   eq_(teval('fun a = (): print 1\n a()'), None)
예제 #39
0
파일: test_t.py 프로젝트: hermetique/dao
 def test2(self):
     eq_(teval('i = 0; loop: print "loop";  i++ until i==3'), None)
예제 #40
0
파일: test_t.py 프로젝트: chaosim/dao
 def test3(self):
   eq_(teval('fun a + (): print 1 a()'), None)
예제 #41
0
파일: test_t.py 프로젝트: hermetique/dao
 def test4(self):
     eq_(teval('i = 0; while i<3: print "loop";  i++'), None)
예제 #42
0
파일: test_t.py 프로젝트: chaosim/dao
 def test1(self):
   eq_(teval('-1'), -1)
   eq_(teval('-123.5e-6'), -0.0001235)
   eq_(teval('"-1"'), "-1")
예제 #43
0
파일: test_t.py 프로젝트: hermetique/dao
 def test1(self):
     eq_(teval('-1'), -1)
     eq_(teval('-123.5e-6'), -0.0001235)
     eq_(teval('"-1"'), "-1")
예제 #44
0
파일: test_t.py 프로젝트: chaosim/dao
 def test4(self):
   eq_(teval('fun a % (): print 1 a()'), None)
예제 #45
0
파일: test_t.py 프로젝트: hermetique/dao
 def test7(self):
     eq_(teval('i = 0; block: i++; print i; if i<3: redo'), None)
예제 #46
0
파일: test_t.py 프로젝트: chaosim/dao
 def test4(self):
   eq_(teval('fun - a/3'), None)
예제 #47
0
파일: test_t.py 프로젝트: hermetique/dao
 def test2(self):
     eq_(teval('fun a = (): print 1\n a()'), None)
예제 #48
0
파일: test_t.py 프로젝트: chaosim/dao
 def test5(self):
   eq_(teval('fun - a:()'), None)
예제 #49
0
파일: test_t.py 프로젝트: hermetique/dao
 def test4(self):
     eq_(teval('fun a % (): print 1 a()'), None)
예제 #50
0
파일: test_t.py 프로젝트: hermetique/dao
 def test1_2(self):
     eq_(teval('a'), var('a'))
예제 #51
0
파일: test_t.py 프로젝트: hermetique/dao
 def test5(self):
     eq_(teval('fun - a:()'), None)
예제 #52
0
파일: test_t.py 프로젝트: chaosim/dao
 def test1_2(self):
   eq_(teval('a'), var('a'))