Skip to content

Commit 1b8bdf6

Browse files
committed
tests/syntax: sanitize whitespace
1 parent 2f13a5f commit 1b8bdf6

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

tests/syntax/line-input-max.bas

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ dim z as zstring ptr, pz as zstring ptr
1414
dim w as wstring ptr, pw as wstring ptr
1515
dim s as string, ps as string
1616
dim fz as zstring * 20, pfz as zstring * 20
17-
dim fw as wstring * 20, pfw as wstring * 20
17+
dim fw as wstring * 20, pfw as wstring * 20
1818

1919
t( 0, line input #1, s )
2020
t( 0, line input #1, fz )
@@ -73,14 +73,14 @@ t( 1, line input #1, fw, 10 )
7373
t( 1, line input #1, *z )
7474
t( 1, line input #1, *w )
7575

76-
t( 1, line input p, s, 10 )
76+
t( 1, line input p, s, 10 )
7777
t( 1, line input p, fz, 10 )
7878
t( 1, line input p, fw, 10 )
7979

8080
t( 1, line input "", *z )
8181
t( 1, line input "", *w )
8282

83-
t( 1, line input p, s, 10 )
83+
t( 1, line input p, s, 10 )
8484
t( 1, line input p, fz, 10 )
8585
t( 1, line input p, fw, 10 )
8686

tests/syntax/optional-parens.bas

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#print "---"
22

33
type T
4-
i as integer
5-
k as integer ptr
4+
i as integer
5+
k as integer ptr
66
end type
77

88
declare sub s1( a as integer = 0 )
@@ -79,13 +79,13 @@ dim a as integer
7979

8080
'' While it does seem inconsistent that the following is accepted
8181
'' with the '+' operator at a lower precedence that the
82-
'' call (), there is a bit of an explanation below:
82+
'' call (), there is a bit of an explanation below:
8383

8484
s1 (a) + a
8585

8686
'' the simple reason to allow it is that without this allowance
8787
'' we would be forcing use of '()' on every procedure call and
88-
'' well established syntax of optional parantheses would fail.
88+
'' well established syntax of optional parantheses would fail.
8989

9090
locate (a + a) \ 2, 1
9191

@@ -101,4 +101,4 @@ dim a as integer
101101
f4 @(x).i
102102

103103
s1 *(x).k
104-
f1 *(x).k
104+
f1 *(x).k

0 commit comments

Comments
 (0)