Skip to content

Commit 4606423

Browse files
committed
fix tests for trailing spaces
1 parent 3d7c0b4 commit 4606423

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

tests/expected/trailing_spaces.gd

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
## This function is the best in the world.
2-
##
3-
## There are no mistakes in it.
4-
func best_function() -> String:
5-
var new_string: String = """
1+
# This test ensures that trailing white space is preserved in a multi-line
2+
# string after the opening mark and content inside the string, but gets removed
3+
# after the closing multiline string mark and other statements.
4+
func test_trailing_spaces() -> String:
5+
var new_string: String = """
66
This is a multi-line string with trailing spaces.
77
"""
88

99
return new_string
10-
11-
# EOF

tests/input/trailing_spaces.gd

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
1-
## This function is the best in the world.
2-
##
3-
## There are no mistakes in it.
4-
func best_function() -> String:
1+
# This test ensures that trailing white space is preserved in a multi-line
2+
# string after the opening mark and content inside the string, but gets removed
3+
# after the closing multiline string mark and other statements.
4+
func test_trailing_spaces() -> String:
55
var new_string: String = """
66
This is a multi-line string with trailing spaces.
77
"""
88

99
return new_string
10-
11-
# EOF

0 commit comments

Comments
 (0)