Skip to content

Commit af52a1a

Browse files
committed
Fixes missing and/or warnings in ExprJoinSplit.sk and SecFilter.sk
1 parent 9e61f38 commit af52a1a

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,27 @@
11
test "join strings":
2-
assert join "a", "b", "c" is "abc" with "join strings without delimiter failed"
3-
assert join "a", "b", "c" with " " is "a b c" with "join strings with delimiter failed"
2+
assert join "a", "b" and "c" is "abc" with "join strings without delimiter failed"
3+
assert join "a", "b" and "c" with " " is "a b c" with "join strings with delimiter failed"
44

55
test "split strings on string":
66
assert split "abc" at "[a-z]" is "abc" with "split with regex chars failed"
77

8-
assert split "a b c" at " " is "a", "b", "c" with "split failed"
9-
assert split "a b c" at " " with case sensitivity is "a", "b", "c" with "split with case sensitivity failed"
10-
assert split "a b c" at " " without trailing string is "a", "b", "c" with "split without trailing string failed"
8+
assert split "a b c" at " " is "a", "b" and "c" with "split failed"
9+
assert split "a b c" at " " with case sensitivity is "a", "b" and "c" with "split with case sensitivity failed"
10+
assert split "a b c" at " " without trailing string is "a", "b" and "c" with "split without trailing string failed"
1111

12-
assert split "abc" at "" is "a", "b", "c", "" with "split with empty delimiter failed"
13-
assert split "abc" at "" with case sensitivity is "a", "b", "c", "" with "split with empty delimiter with case sensitivity failed"
14-
assert split "abc" at "" without trailing string is "a", "b", "c" with "split with empty delimiter without trailing string failed"
15-
assert split "abc" at "" with case sensitivity without trailing string is "a", "b", "c" with "split with empty delimiter with case sensitivity without trailing string failed"
12+
assert split "abc" at "" is "a", "b", "c" and "" with "split with empty delimiter failed"
13+
assert split "abc" at "" with case sensitivity is "a", "b", "c" and "" with "split with empty delimiter with case sensitivity failed"
14+
assert split "abc" at "" without trailing string is "a", "b" and "c" with "split with empty delimiter without trailing string failed"
15+
assert split "abc" at "" with case sensitivity without trailing string is "a", "b" and "c" with "split with empty delimiter with case sensitivity without trailing string failed"
1616

17-
assert split "-x-X" at "x" is "-", "-", "" with "split with delimiter at end failed"
18-
assert split "-x-X" at "x" with case sensitivity is "-", "-X" with "split with delimiter at end with case sensitivity failed"
19-
assert split "-x-X" at "x" without trailing string is "-", "-" with "split with delimiter at end without trailing string failed"
20-
assert split "-x-X" at "x" with case sensitivity without trailing string is "-", "-X" with "split with delimiter at end with case sensitivity without trailing string failed"
17+
assert split "-x-X" at "x" is "-", "-" and "" with "split with delimiter at end failed"
18+
assert split "-x-X" at "x" with case sensitivity is "-" and "-X" with "split with delimiter at end with case sensitivity failed"
19+
assert split "-x-X" at "x" without trailing string is "-" and "-" with "split with delimiter at end without trailing string failed"
20+
assert split "-x-X" at "x" with case sensitivity without trailing string is "-" and "-X" with "split with delimiter at end with case sensitivity without trailing string failed"
2121

2222
test "split strings on regex":
23-
assert regex split "a b c" at " " is "a", "b", "c" with "regex split failed"
24-
assert regex split "a b_c" at "( |_)" is "a", "b", "c" with "regex split with regex failed"
23+
assert regex split "a b c" at " " is "a", "b" and "c" with "regex split failed"
24+
assert regex split "a b_c" at "( |_)" is "a", "b" and "c" with "regex split with regex failed"
2525

26-
assert regex split "-a-b-c" at "[a-z]" is "-", "-", "-", "" with "regex split with delimiter at end failed"
27-
assert regex split "-a-b-c" at "[a-z]" without trailing string is "-", "-", "-" with "regex split with delimiter at end without trailing string failed"
26+
assert regex split "-a-b-c" at "[a-z]" is "-", "-", "-" and "" with "regex split with delimiter at end failed"
27+
assert regex split "-a-b-c" at "[a-z]" without trailing string is "-", "-" and "-" with "regex split with delimiter at end without trailing string failed"

src/test/skript/tests/syntaxes/sections/SecFilter.sk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ test "filter":
77
mod(input, 2) = 0
88

99
assert size of {_a::*} is 11 with "failed to filter on mod()"
10-
assert {_a::*} is -10, -8, -6, -4 ,-2, 0, 2, 4, 6, 8, 10 with "failed to filter on mod()"
10+
assert {_a::*} is -10, -8, -6, -4 ,-2, 0, 2, 4, 6, 8 and 10 with "failed to filter on mod()"
1111

1212

1313
set {_a::*} to integers between -10 and 10
@@ -20,7 +20,7 @@ test "filter":
2020
input > 0
2121

2222
assert size of {_a::*} is 5 with "failed to filter on mod(), >0, is number"
23-
assert {_a::*} is 2, 4, 6, 8, 10 with "failed to filter on mod(), >0, is number"
23+
assert {_a::*} is 2, 4, 6, 8 and 10 with "failed to filter on mod(), >0, is number"
2424

2525

2626
set {_a::*} to integers between -10 and 10
@@ -32,4 +32,4 @@ test "filter":
3232
input > 0
3333

3434
assert size of {_a::*} is 16 with "failed to filter on any of mod(), >0"
35-
assert {_a::*} is -10, -8, -6, -4, -2, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 with "failed to filter on any of mod(), >0"
35+
assert {_a::*} is -10, -8, -6, -4, -2, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 and 10 with "failed to filter on any of mod(), >0"

0 commit comments

Comments
 (0)