@@ -48,27 +48,27 @@ $t.test(‘source link’,
48
48
49
49
$ t . test(‘ basic “nick:” query’ ,
50
50
“ { $ t . bot-nick} : HEAD say ‘hello’” ,
51
- /^ <me ($ t )>‘, ¦« HEAD(’ <sha >‘)»: hello’ $ /);
51
+ /^ <me ($ t )>‘, ¦HEAD(’ <sha >‘): « hello» ’ $ /);
52
52
53
53
$ t . test(‘ basic “nick,” query’ ,
54
54
“ { $ t . bot-nick} , HEAD say ‘hello’” ,
55
- /^ <me ($ t )>‘, ¦« HEAD(’ <sha >‘)»: hello’ $ /);
55
+ /^ <me ($ t )>‘, ¦HEAD(’ <sha >‘): « hello» ’ $ /);
56
56
57
57
$ t . test(‘ “commit:” shortcut’ ,
58
58
‘ commit: HEAD say ‘hello’’ ,
59
- /^ <me ($ t )>‘, ¦« HEAD(’ <sha >‘)»: hello’ $ /);
59
+ /^ <me ($ t )>‘, ¦HEAD(’ <sha >‘): « hello» ’ $ /);
60
60
61
61
$ t . test(‘ “commit,” shortcut’ ,
62
62
‘ commit, HEAD say ‘hello’’ ,
63
- /^ <me ($ t )>‘, ¦« HEAD(’ <sha >‘)»: hello’ $ /);
63
+ /^ <me ($ t )>‘, ¦HEAD(’ <sha >‘): « hello» ’ $ /);
64
64
65
65
$ t . test(‘ “commit6:” shortcut’ ,
66
66
‘ commit6: HEAD say ‘hello’’ ,
67
- /^ <me ($ t )>‘, ¦« HEAD(’ <sha >‘)»: hello’ $ /);
67
+ /^ <me ($ t )>‘, ¦HEAD(’ <sha >‘): « hello» ’ $ /);
68
68
69
69
$ t . test(‘ “commit6,” shortcut’ ,
70
70
‘ commit6, HEAD say ‘hello’’ ,
71
- /^ <me ($ t )>‘, ¦« HEAD(’ <sha >‘)»: hello’ $ /);
71
+ /^ <me ($ t )>‘, ¦HEAD(’ <sha >‘): « hello» ’ $ /);
72
72
73
73
$ t . test(‘ “commit” shortcut does not work’ ,
74
74
‘ commit HEAD say ‘hello’’ );
@@ -78,7 +78,7 @@ $t.test(‘“commit6” shortcut does not work’,
78
78
79
79
$ t . test(‘ specific commit’ ,
80
80
‘ commit: f583f22 say $*PERL.compiler.version’ ,
81
- “ { $ t . our-nick} , ¦« f583f22»: v2016.06.183.gf.583.f.22” );
81
+ “ { $ t . our-nick} , ¦f583f22: « v2016.06.183.gf.583.f.22» ” );
82
82
83
83
$ t . test(‘ too long output is uploaded’ ,
84
84
‘ commit: HEAD .say for ^1000’ ,
@@ -88,67 +88,67 @@ $t.test(‘too long output is uploaded’,
88
88
89
89
$ t . test(‘ exit code’ ,
90
90
‘ commit: 2015.12 say ‘foo’; exit 42’ ,
91
- “ { $ t . our-nick} , ¦« 2015.12»: foo «exit code = 42»” );
91
+ “ { $ t . our-nick} , ¦2015.12: « foo «exit code = 42» »” );
92
92
93
93
$ t . test(‘ exit signal’ ,
94
94
‘ commit: 2016.03 say ^1000 .grep: -> $n {([+] ^$n .grep: -> $m {$m and $n %% $m}) == $n }’ ,
95
- “ { $ t . our-nick} , ¦« 2016.03»: «exit signal = SIGSEGV (11)»” );
95
+ “ { $ t . our-nick} , ¦2016.03: « «exit signal = SIGSEGV (11)» »” );
96
96
97
97
# STDIN
98
98
99
99
$ t . test(‘ stdin’ ,
100
100
‘ commit: HEAD say lines[0]’ ,
101
- /^ <me ($ t )>‘, ¦« HEAD(’ <sha >‘)»: ♥🦋 ꒛㎲₊⼦🂴⧿⌟ⓜ≹℻ 😦⦀🌵 🖰㌲⎢➸ 🐍💔 🗭𐅹⮟⿁ ⡍㍷⽐’ $ /);
101
+ /^ <me ($ t )>‘, ¦HEAD(’ <sha >‘): « ♥🦋 ꒛㎲₊⼦🂴⧿⌟ⓜ≹℻ 😦⦀🌵 🖰㌲⎢➸ 🐍💔 🗭𐅹⮟⿁ ⡍㍷⽐» ’ $ /);
102
102
103
103
$ t . test(‘ set custom stdin’ ,
104
104
‘ commit: stdIN custom stringanother line’ ,
105
105
“ { $ t . our-nick} , STDIN is set to «custom stringanother line»” );
106
106
107
107
$ t . test(‘ test custom stdin’ ,
108
108
‘ committable6: HEAD dd lines’ ,
109
- /^ <me ($ t )>‘, ¦« HEAD(’ <sha >‘)»: ("custom string", "another line").Seq’ $ /);
109
+ /^ <me ($ t )>‘, ¦HEAD(’ <sha >‘): « ("custom string", "another line").Seq» ’ $ /);
110
110
111
111
$ t . test(‘ reset stdin’ ,
112
112
‘ commit: stdIN rESet’ ,
113
113
“ { $ t . our-nick} , STDIN is reset to the default value” );
114
114
115
115
$ t . test(‘ test stdin after reset’ ,
116
116
‘ commit: HEAD say lines[0]’ ,
117
- /^ <me ($ t )>‘, ¦« HEAD(’ <sha >‘)»: ♥🦋 ꒛㎲₊⼦🂴⧿⌟ⓜ≹℻ 😦⦀🌵 🖰㌲⎢➸ 🐍💔 🗭𐅹⮟⿁ ⡍㍷⽐’ $ /);
117
+ /^ <me ($ t )>‘, ¦HEAD(’ <sha >‘): « ♥🦋 ꒛㎲₊⼦🂴⧿⌟ⓜ≹℻ 😦⦀🌵 🖰㌲⎢➸ 🐍💔 🗭𐅹⮟⿁ ⡍㍷⽐» ’ $ /);
118
118
119
119
$ t . test(‘ stdin line count’ ,
120
120
‘ commit: HEAD say +lines’ ,
121
- /^ <me ($ t )>‘, ¦« HEAD(’ <sha >‘)»: 10 ’ $ /);
121
+ /^ <me ($ t )>‘, ¦HEAD(’ <sha >‘): «10» ’ $ /);
122
122
123
123
$ t . test(‘ stdin word count’ ,
124
124
‘ commit: HEAD say +$*IN.words’ ,
125
- /^ <me ($ t )>‘, ¦« HEAD(’ <sha >‘)»: 100’ $ /);
125
+ /^ <me ($ t )>‘, ¦HEAD(’ <sha >‘): « 100» ’ $ /);
126
126
127
127
$ t . test(‘ stdin char count’ ,
128
128
‘ commit: HEAD say +slurp.chars’ ,
129
- /^ <me ($ t )>‘, ¦« HEAD(’ <sha >‘)»: 500’ $ /);
129
+ /^ <me ($ t )>‘, ¦HEAD(’ <sha >‘): « 500» ’ $ /);
130
130
131
131
# Ranges and multiple commits
132
132
133
133
$ t . test(‘ “releases” query’ ,
134
134
‘ commit: releases say $*PERL’ ,
135
- /^ <{$t .our - nick }> ‘, ¦« releases (’ \d + ‘ commits)»: Perl 6 (6.c)’ $ /);
135
+ /^ <{$t .our - nick }> ‘, ¦releases (’ \d + ‘ commits): « Perl 6 (6.c)» ’ $ /);
136
136
137
137
$ t . test(‘ “v6c” query’ ,
138
138
‘ commit: v6c say $*PERL’ ,
139
- /^ <{$t .our - nick }> ‘, ¦« v6c (’ \d + ‘ commits)»: Perl 6 (6.c)’ $ /);
139
+ /^ <{$t .our - nick }> ‘, ¦v6c (’ \d + ‘ commits): « Perl 6 (6.c)» ’ $ /);
140
140
141
141
$ t . test(‘ “6.c” query’ ,
142
142
‘ commit: 6.c say $*PERL’ ,
143
- /^ <{$t .our - nick }> ‘, ¦« 6.c (’ \d + ‘ commits)»: Perl 6 (6.c)’ $ /);
143
+ /^ <{$t .our - nick }> ‘, ¦6.c (’ \d + ‘ commits): « Perl 6 (6.c)» ’ $ /);
144
144
145
145
$ t . test(‘ “6c” query’ ,
146
146
‘ commit: 6c say $*PERL’ ,
147
- /^ <{$t .our - nick }> ‘, ¦« 6c (’ \d + ‘ commits)»: Perl 6 (6.c)’ $ /);
147
+ /^ <{$t .our - nick }> ‘, ¦6c (’ \d + ‘ commits): « Perl 6 (6.c)» ’ $ /);
148
148
149
149
$ t . test(‘ “all” query (same output everywhere)’ ,
150
150
‘ commit: all say 'hi'’ , # ASCII quotes because they are supported everywhere
151
- /^ <{$t .our - nick }> ‘, ¦« all (’ \d + ‘ commits)»: hi ’ $ /,
151
+ /^ <{$t .our - nick }> ‘, ¦all (’ \d + ‘ commits): «hi» ’ $ /,
152
152
: 20 timeout);
153
153
154
154
$ t . test(‘ “all” query (different output everywhere)’ ,
@@ -158,37 +158,37 @@ $t.test(‘“all” query (different output everywhere)’,
158
158
159
159
$ t . test(‘ multiple commits separated by comma’ ,
160
160
“ commit: 2016.02,2016.03,9ccd848,HEAD say ‘hello’” ,
161
- /^ <me ($ t )>‘, ¦« 2016.02,2016.03,9ccd848,HEAD(’ <sha >‘)»: hello’ $ /);
161
+ /^ <me ($ t )>‘, ¦2016.02,2016.03,9ccd848,HEAD(’ <sha >‘): « hello» ’ $ /);
162
162
163
163
$ t . test(‘ commit~num syntax’ ,
164
164
‘ commit: 2016.04~100,2016.04 say $*PERL.compiler.version’ ,
165
- “ { $ t . our-nick} , ¦« 2016.04~100»: v2016.03.1.g.7.cc.37.b.3 ¦« 2016.04»: v2016.04” );
165
+ “ { $ t . our-nick} , ¦2016.04~100: « v2016.03.1.g.7.cc.37.b.3» ¦ 2016.04: « v2016.04» ” );
166
166
167
167
$ t . test(‘ commit^^^ syntax’ ,
168
168
‘ commit: 2016.03^^^,2016.03^^,2016.03^,2016.03 say 42’ ,
169
- “ { $ t . our-nick} , ¦« 2016.03^^^,2016.03^^,2016.03^,2016.03»: 42 ” );
169
+ “ { $ t . our-nick} , ¦2016.03^^^,2016.03^^,2016.03^,2016.03: «42» ” );
170
170
171
171
$ t . test(‘ commit..commit range syntax’ ,
172
172
‘ commit: 2016.07~73..2016.07~72 say ‘a’ x 9999999999999999999’ ,
173
- /^ <{$t .our - nick }> ‘, ¦« 8ea2ae8,586f784»: ¦« 87e8067»: repeat count (-8446744073709551617) cannot be negative in block <unit> at /tmp/ ’ \w+ ‘ line 1 «exit code = 1»’ $/ );
173
+ /^ <{$t .our - nick }> ‘, ¦8ea2ae8,586f784: «» ¦ 87e8067: « repeat count (-8446744073709551617) cannot be negative in block <unit> at /tmp/ ’ \w+ ‘ line 1 «exit code = 1» »’ $/ );
174
174
175
175
# Special characters
176
176
#`{ What should we do with colors?
177
177
$t.test(‘special characters’,
178
178
‘commit: HEAD say (.chr for ^128).join’,
179
- $t.our-nick ~ ‘, ¦« HEAD(’<sha>‘)»: ␀␁␂␃␄␅␆␇␈␉␋␌␍␎␏␐␑␒␓␔␕␖␗␘␙␚␛␜␝␞␟ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|} ~␡’);
179
+ $t.our-nick ~ ‘, ¦HEAD(’<sha>‘): « ␀␁␂␃␄␅␆␇␈␉␋␌␍␎␏␐␑␒␓␔␕␖␗␘␙␚␛␜␝␞␟ !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|} ~␡» ’);
180
180
181
181
$t.test(‘ works like an actual newline’,
182
182
‘commit: HEAD # This is a comment  say 「hello world!」’,
183
- “{$t.our-nick} , ¦« HEAD(’<sha>‘)»: hello world!”);
183
+ “{$t.our-nick} , ¦HEAD(’<sha>‘): « hello world!» ”);
184
184
}
185
185
186
186
# URLs
187
187
188
188
$ t . test(‘ fetching code from urls’ ,
189
189
‘ commit: HEAD https://gist.githubusercontent.com/AlexDaniel/147bfa34b5a1b7d1ebc50ddc32f95f86/raw/9e90da9f0d95ae8c1c3bae24313fb10a7b766595/test.p6’ ,
190
190
“ { $ t . our-nick} , Successfully fetched the code from the provided URL.” ,
191
- /^ <me ($ t )>‘, ¦« HEAD(’ <sha >‘)»: url test’ $ /);
191
+ /^ <me ($ t )>‘, ¦HEAD(’ <sha >‘): « url test» ’ $ /);
192
192
193
193
$ t . test(‘ wrong url’ ,
194
194
‘ commit: HEAD http://github.org/sntoheausnteoahuseoau’ ,
@@ -202,7 +202,7 @@ $t.test(‘wrong mime type’,
202
202
203
203
$ t . test(‘ last basic query, just in case’ , # keep it last in this file
204
204
“ { $ t . bot-nick} : HEAD say ‘hello’” ,
205
- /^ <me ($ t )>‘, ¦« HEAD(’ <sha >‘)»: hello’ $ /);
205
+ /^ <me ($ t )>‘, ¦HEAD(’ <sha >‘): « hello» ’ $ /);
206
206
207
207
done-testing ;
208
208
END $ t . end ;
0 commit comments