-
Notifications
You must be signed in to change notification settings - Fork 1
/
practice-split-suite-2.red
121 lines (119 loc) · 2.09 KB
/
practice-split-suite-2.red
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
Red []
; b: list of inputs
; repeat i length? b [print mold make map! compose [id: (to issue! form i] input: (b/:i]]]
[
; [
; id: #_ ; #_ doesn't show in app. Use as a template
; ;desc: ""
; input: "" ; string or block
; goal: [] ; expected output, always a block
; ; time: none
; ; tries: [] ; be able to see what they actually tried
; ; notes: none ; [input goal rule note]
; ]
[
id: #01
input: "a,b,c"
goal: ["a" "b" "c"]
]
[
id: #02
input: "abc<br>de<br>fghi<br>jk"
goal: ["abc" "de" "fghi" "jk"]
]
[
id: #03
input: "1.2,3."
goal: ["1" "2" "3" ""]
]
[
id: #04
input: "abc|de/fghi:jk"
goal: ["abc" "de" "fghi" "jk"]
]
[
id: #05
input: "aabbbccccddd"
goal: ["aa" "bbb" "cccc" "ddd"]
]
[
id: #06
input: "camelCaseName"
goal: ["camel" "Case" "Name"]
]
[
id: #07
input: "A split sentence. And another"
goal: [["A" "split" "sentence"] ["And" "another"]]
]
[
id: #08
input: "YYYYMMDD/HHMMSS"
goal: ["YYYY" "MM" "DD" "HH" "MM" "SS"]
]
[
id: #09
input: "Mon, 24 Nov 1997"
goal: ["Mon" "24" "Nov" "1997"]
]
[
id: #10
input: "a,b,c,d,e,f,g"
goal: ["a" "b" "c" "d,e,f,g"]
]
[
id: #11
input: "a,b,c,d,e,f,g"
goal: ["a,b,c,d,e,f" "g"]
]
[
id: #12
input: [0 1 2 2 1 1 2 3]
goal: [[0 1 2] [2 1] [1 2 3]]
]
[
id: #13
input: [0 1 2 2 1 1 2 3]
goal: [[0 1 2 2] [1 1 2 3]]
]
[
id: #14
input: [1 2 [3] 4 5 6 [3] 7 8 9]
goal: [[1 2] [4 5 6] [7 8 9]]
]
[
id: #15
input: [1 2 3 4 5 6]
goal: [[1 2 3] [4 5 6]]
]
[
id: #16
input: [1 2 3 4 5 6]
goal: [[1 2] [3] [4 5 6]]
]
[
id: #17
input: [a 1 2 b 4 c 3 6 1]
goal: [[a 1 2] [b 4] [c 3 6 1]]
]
[
id: #18
input: [a b 1 c 2 d e f 3]
goal: [[a b 1] [c 2] [d e f 3]]
]
[
id: #19
input: [#"a" | #"b" | #"c"]
goal: [[#"a"] [#"b"] [#"c"]]
]
[
id: #20
input: [id: #1 input: "a,b,c" goal: ["a" "b" "c"]]
goal: [[] [#1] ["a,b,c"] [["a" "b" "c"]]]
]
[
id: #21
input: [1 2 3 4 5 6 7 8 9]
goal: [[1 2] [3] [4 5] [6] [7 8] [9]]
]
]