projects
/
hwmod.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
parser: testfaelle an neue fehlermeldungen angepasst
[hwmod.git]
/
src
/
parser.test
1
# beachte, eingabe muss schon "scanner"-gecheckt sein
2
#
3
# testfall 1:
4
58243
5
58243
6
# testfall 2:
7
12345
8
12345
9
# t3:
10
12+5
11
17
12
# t4:
13
1337+124
14
1461
15
# t5:
16
1+1+1
17
3
18
# t6:
19
98+123+531511+131
20
531863
21
# t7:
22
513-1-200
23
312
24
# t8
25
5*10*200
26
10000
27
# t9
28
100-30-50
29
20
30
# t10
31
10*20+2000*10
32
20200
33
# t11
34
1000/10
35
100
36
# t12
37
1000/10/2-20
38
30
39
# t13
40
10+2/2
41
11
42
# t14
43
10-4/2
44
8
45
# t15
46
1000-4*100+5-300/2
47
455
48
# t16
49
10+ 2
50
12
51
# t17
52
9 +3
53
12
54
# t18
55
50 / 2 + 1 -3
56
23
57
# t19
58
50+1
59
51
60
# t20
61
40-100
62
-60
63
# t21
64
-40*2
65
-80
66
# t22
67
4/-2
68
-2
69
# t23
70
-2 * -1 --1
71
3
72
# t24
73
-2 * -2 --2 * -1 * -1 - 100
74
-94
75
# t25
76
-1234 / -500
77
2
78
# t26
79
3 3
80
> Fehler: Syntax
81
# t27
82
++
83
> Fehler: Syntax
84
# t28
85
**
86
> Fehler: Syntax
87
# t29
88
*+/-
89
> Fehler: Syntax
90
# t30
91
* /
92
> Fehler: Syntax
93
# t31
94
2 + ----
95
> Fehler: Syntax
96
# t32
97
2 --1
98
3
99
# t33
100
21448368 * 123141
101
> Fehler: Over- bzw. Underflow
102
# t34
103
21448368 * -123141
104
> Fehler: Over- bzw. Underflow
105
# t35
106
341212 / 0
107
> Fehler: Division durch Null
108
# t36
109
341212 / -0*2
110
> Fehler: Division durch Null