-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix parsing of CRLF style line endings
- Loading branch information
1 parent
f2393db
commit e729112
Showing
5 changed files
with
47 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Need for testing of proper CRLF parsing | ||
tests/test_newlines_crlf.pf text eol=crlf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
""" | ||
Model for testing parsing if CRLF line endings are used. | ||
This file uses CRLF and is set so in .gitattributes | ||
""" | ||
a = 10 | ||
b = 5 | ||
test TestModel { | ||
|
||
| direction | position | response | | ||
|-----------+----------+----------| | ||
| left | (0, 50) | left | | ||
|
||
exec -> at a + 100 c1:circle(position 0, radius 5 + 15) for a + b * a + 140 | ||
at .+100 c2:circle(position 0, radius 20) for 200 | ||
at +100 c3:circle(position 0, radius 20) for 200 | ||
c4:circle(position 0, radius 20) for 200 | ||
at 100 c5:circle(position 0, radius 20) | ||
} | ||
|
||
flow { | ||
repeat { | ||
execute TestModel | ||
} with | ||
| just_testing | | ||
|--------------| | ||
| true | | ||
| false | | ||
} |