tests/test-schemes.t
changeset 27982 bf1d5c223ac0
parent 22046 7a9cbb315d84
child 40034 393e44324037
--- a/tests/test-schemes.t	Fri Jan 29 14:40:41 2016 -0500
+++ b/tests/test-schemes.t	Fri Jan 29 14:53:44 2016 -0500
@@ -52,6 +52,21 @@
   no changes found
   [1]
 
+check that debugexpandscheme outputs the canonical form
+
+  $ hg debugexpandscheme bb://user/repo
+  https://bitbucket.org/user/repo
+
+expanding an unknown scheme emits the input
+
+  $ hg debugexpandscheme foobar://this/that
+  foobar://this/that
+
+expanding a canonical URL emits the input
+
+  $ hg debugexpandscheme https://bitbucket.org/user/repo
+  https://bitbucket.org/user/repo
+
 errors
 
   $ cat errors.log