File tree 3 files changed +22
-10
lines changed
3 files changed +22
-10
lines changed Original file line number Diff line number Diff line change @@ -183,7 +183,7 @@ Options:
183
183
continue
184
184
}
185
185
186
- if value == true {
186
+ if value == nil {
187
187
if tag .HasValue {
188
188
fmt .Println (
189
189
"Tag" ,
@@ -248,7 +248,7 @@ Options:
248
248
if test .Atoms .Tags != nil {
249
249
tagsDict := make (map [string ]ircmsg.TagValue )
250
250
for key , value := range test .Atoms .Tags {
251
- if value == true {
251
+ if value == nil {
252
252
tagsDict [key ] = ircmsg .NoTagValue ()
253
253
} else {
254
254
tagsDict [key ] = ircmsg .MakeTagValue (value .(string ))
Original file line number Diff line number Diff line change 21
21
tests :
22
22
# the atoms dict has the keys:
23
23
# * tags: tags dict
24
- # tags with no equals sign have a value of true in this file
24
+ # tags with no equals sign have a value of null in this file
25
25
# tags with no value after = sign have a value of empty string
26
26
# * source: source string, without single leading colon
27
27
# * verb: verb string
@@ -135,6 +135,18 @@ tests:
135
135
- " :coolguy foo bar baz : "
136
136
137
137
# with tags
138
+ - atoms :
139
+ tags :
140
+ " asd " : null
141
+ source : " coolguy"
142
+ verb : " foo"
143
+ params :
144
+ - " bar"
145
+ - " baz"
146
+ - " "
147
+ matches :
148
+ - " @asd :coolguy foo bar baz : "
149
+
138
150
- atoms :
139
151
verb : " foo"
140
152
tags :
Original file line number Diff line number Diff line change 28
28
29
29
# the atoms dict has the keys:
30
30
# * tags: tags dict
31
- # tags with no equals sign have a value of true in this file
31
+ # tags with no equals sign have a value of null in this file
32
32
# tags with no value after = sign have a value of empty string
33
33
# * source: source string, without single leading colon
34
34
# * verb: verb string
@@ -134,7 +134,7 @@ tests:
134
134
tags :
135
135
" a " : " b"
136
136
" c " : " 32"
137
- " k " : true
137
+ " k " : null
138
138
" rt " : " ql7"
139
139
140
140
# with escaped tags
@@ -150,7 +150,7 @@ tests:
150
150
- input : " @c;h=;a=b :quux ab cd"
151
151
atoms :
152
152
tags :
153
- " c " : true
153
+ " c " : null
154
154
" h " : " "
155
155
" a " : " b"
156
156
source : " quux"
@@ -214,9 +214,9 @@ tests:
214
214
atoms :
215
215
tags :
216
216
tag1 : " value1"
217
- tag2 : true
217
+ tag2 : null
218
218
vendor1/tag3 : " value2"
219
- vendor2/tag4 : true
219
+ vendor2/tag4 : null
220
220
source : " irc.example.com"
221
221
verb : " COMMAND"
222
222
params :
@@ -237,9 +237,9 @@ tests:
237
237
atoms :
238
238
tags :
239
239
tag1 : " value1"
240
- tag2 : true
240
+ tag2 : null
241
241
vendor1/tag3 : " value2"
242
- vendor2/tag4 : true
242
+ vendor2/tag4 : null
243
243
verb : " COMMAND"
244
244
params :
245
245
- " param1"
You can’t perform that action at this time.
0 commit comments