+
+ // No authority (no "//") is valid
+ {
+ fbstring s("this:is/a/valid/uri");
+ Uri u(s);
+ EXPECT_EQ("this", u.scheme());
+ EXPECT_EQ("is/a/valid/uri", u.path());
+ EXPECT_EQ(s, u.fbstr());
+ }
+ {
+ fbstring s("this:is:another:valid:uri");
+ Uri u(s);
+ EXPECT_EQ("this", u.scheme());
+ EXPECT_EQ("is:another:valid:uri", u.path());
+ EXPECT_EQ(s, u.fbstr());
+ }
+ {
+ fbstring s("this:is@another:valid:uri");
+ Uri u(s);
+ EXPECT_EQ("this", u.scheme());
+ EXPECT_EQ("is@another:valid:uri", u.path());
+ EXPECT_EQ(s, u.fbstr());
+ }