Roger Light
unread,Nov 3, 2013, 4:58:05 PM11/3/13Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message as abuse
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to mq...@googlegroups.com
Hi Mark,
The tests I do are:
do_check("foo/bar", "foo/bar", False)
do_check("foo/+", "foo/bar", False)
do_check("foo/+/baz", "foo/bar/baz", False)
do_check("foo/+/#", "foo/bar/baz", False)
do_check("#", "foo/bar/baz", False)
do_check("foo/bar", "foo", True)
do_check("foo/+", "foo/bar/baz", True)
do_check("foo/+/baz", "foo/bar/bar", True)
do_check("foo/+/#", "fo2/bar/baz", True)
do_check("#", "/foo/bar", False)
do_check("/#", "/foo/bar", False)
do_check("/#", "foo/bar", True)
do_check("foo//bar", "foo//bar", False)
do_check("foo//+", "foo//bar", False)
do_check("foo/+/+/baz", "foo///baz", False)
do_check("foo/bar/+", "foo/bar/", False)
The do_check() parameters are subscription, topic and bad_result (i.e.
if my check returns bad_result it's a failure).
Cheers,
Roger