Skip to content
This repository was archived by the owner on Jun 7, 2020. It is now read-only.

Commit 140b28f

Browse files
committed
Fix some tests to work without extensions
1 parent 3825968 commit 140b28f

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

ifj2017/tests/02_functions/40.code

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,16 @@ end function
1414

1515
scope
1616
dim a as integer = 5.6
17-
dim b as integer = foo1(2.9)
18-
dim c as double = foo1(2.4)
19-
dim d as double = foo2(2.4)
20-
dim e as string = foo3(2.6)
21-
dim f as integer = foo1(a)
17+
dim b as integer
18+
b = foo1(2.9)
19+
dim c as double
20+
c = foo1(2.4)
21+
dim d as double
22+
d = foo2(2.4)
23+
dim e as string
24+
e = foo3(2.6)
25+
dim f as integer
26+
f = foo1(a)
2227

2328
print a;b;c;d;e;f;
2429
end scope

ifj2017/tests/02_functions/41.code

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,26 @@
11
' Usage of builtin functions inside user-defined functions
22

33
function strLen(s as string) as integer
4-
dim b as integer = length(s)
4+
dim b as integer
5+
b = length(s)
56
return b
67
end function
78

89
function subString(s As String, i As Integer, n As Integer) As String
9-
dim b as String = SubStr(s, i, n)
10+
dim b as String
11+
b = SubStr(s, i, n)
1012
return b
1113
end function
1214

1315
function AsciiVal(s As String, i As Integer) As Integer
14-
dim b as Integer = asc(s, i)
16+
dim b as Integer
17+
b = asc(s, i)
1518
return b
1619
end function
1720

1821
function CharFromAscii(i As Integer) As String
19-
dim b as String = Chr(i)
22+
dim b as String
23+
b = Chr(i)
2024
return b
2125
end function
2226

ifj2017/tests/66_errors/tests.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1650,7 +1650,7 @@
16501650
{
16511651
"info": "Errors during interpretation",
16521652
"interpreter_exit_code": 57,
1653-
"code": "scope \n print 3\\-0.2; \n end scope"
1653+
"code": "scope \n print 3\\(0-0.2); \n end scope"
16541654
},
16551655
{
16561656
"info": "Errors during interpretation",

0 commit comments

Comments
 (0)