diff tests/test-namespaces.t @ 6612:94bf2f307b75 stable

topic: check that topic namespace names are human-readable like topics
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 11 Dec 2023 16:51:27 -0300
parents ae7c75c43f92
children 9e442e116621 d3668c704d40
line wrap: on
line diff
--- a/tests/test-namespaces.t	Mon Dec 11 16:27:09 2023 -0300
+++ b/tests/test-namespaces.t	Mon Dec 11 16:51:27 2023 -0300
@@ -43,6 +43,16 @@
   $ hg --encoding latin1 debug-topic-namespaces
   \xe6 (esc)
 
+  $ hg --encoding utf-8 debug-topic-namespace ©
+  abort: invalid topic namespace name: '\xc2\xa9' (esc)
+  (topic namespace names can only consist of alphanumeric, '-', '_' and '.' characters)
+  [10]
+
+  $ hg --encoding latin1 debug-topic-namespace æ
+  abort: invalid topic namespace name: '\xc3\xa6' (esc)
+  (topic namespace names can only consist of alphanumeric, '-', '_' and '.' characters)
+  [10]
+
   $ hg branches
 
   $ hg debug-topic-namespace --clear