@@ -284,13 +284,14 @@ void main() {
284284 final testCases = [
285285 ('/#narrow/stream/check/topic/test' , eg.topicNarrow (1 , 'test' )),
286286 ('/#narrow/stream/mobile/subject/topic/near/378333' , eg.topicNarrow (3 , 'topic' )),
287- ('/#narrow/stream/mobile/subject/topic/with/1' , eg.topicNarrow (3 , 'topic' )),
287+ ('/#narrow/stream/mobile/subject/topic/with/1' , eg.topicNarrow (3 , 'topic' , with_ : 1 )),
288288 ('/#narrow/stream/mobile/topic/topic/' , eg.topicNarrow (3 , 'topic' )),
289289 ('/#narrow/stream/stream/topic/topic/near/1' , eg.topicNarrow (5 , 'topic' )),
290- ('/#narrow/stream/stream/topic/topic/with/22' , eg.topicNarrow (5 , 'topic' )),
290+ ('/#narrow/stream/stream/topic/topic/with/22' , eg.topicNarrow (5 , 'topic' , with_ : 22 )),
291291 ('/#narrow/stream/stream/subject/topic/near/1' , eg.topicNarrow (5 , 'topic' )),
292- ('/#narrow/stream/stream/subject/topic/with/333' , eg.topicNarrow (5 , 'topic' )),
292+ ('/#narrow/stream/stream/subject/topic/with/333' , eg.topicNarrow (5 , 'topic' , with_ : 333 )),
293293 ('/#narrow/stream/stream/subject/topic' , eg.topicNarrow (5 , 'topic' )),
294+ ('/#narrow/stream/stream/subject/topic/with/asdf' , null ), // invalid `with`
294295 ];
295296 testExpectedNarrows (testCases, streams: streams);
296297 });
@@ -313,7 +314,7 @@ void main() {
313314 final testCases = [
314315 ('/#narrow/dm/1,2-group' , expectedNarrow),
315316 ('/#narrow/dm/1,2-group/near/1' , expectedNarrow),
316- ('/#narrow/dm/1,2-group/with/2' , expectedNarrow ),
317+ ('/#narrow/dm/1,2-group/with/2' , null ),
317318 ('/#narrow/dm/a.40b.2Ecom.2Ec.2Ed.2Ecom/near/3' , null ),
318319 ('/#narrow/dm/a.40b.2Ecom.2Ec.2Ed.2Ecom/with/4' , null ),
319320 ];
@@ -326,7 +327,7 @@ void main() {
326327 final testCases = [
327328 ('/#narrow/pm-with/1,2-group' , expectedNarrow),
328329 ('/#narrow/pm-with/1,2-group/near/1' , expectedNarrow),
329- ('/#narrow/pm-with/1,2-group/with/2' , expectedNarrow ),
330+ ('/#narrow/pm-with/1,2-group/with/2' , null ),
330331 ('/#narrow/pm-with/a.40b.2Ecom.2Ec.2Ed.2Ecom/near/3' , null ),
331332 ('/#narrow/pm-with/a.40b.2Ecom.2Ec.2Ed.2Ecom/with/3' , null ),
332333 ];
@@ -342,7 +343,7 @@ void main() {
342343 ('/#narrow/is/$operand ' , narrow),
343344 ('/#narrow/is/$operand /is/$operand ' , narrow),
344345 ('/#narrow/is/$operand /near/1' , narrow),
345- ('/#narrow/is/$operand /with/2' , narrow ),
346+ ('/#narrow/is/$operand /with/2' , null ),
346347 ('/#narrow/channel/7-test-here/is/$operand ' , null ),
347348 ('/#narrow/channel/check/topic/test/is/$operand ' , null ),
348349 ('/#narrow/topic/test/is/$operand ' , null ),
0 commit comments