tests/test-topic.t
changeset 3652 81985b9d3e74
parent 3430 14fbb847be5a
child 3667 a346b1641dfa
--- a/tests/test-topic.t	Fri Apr 06 23:42:47 2018 +0530
+++ b/tests/test-topic.t	Thu Mar 29 17:42:32 2018 +0530
@@ -115,6 +115,24 @@
   abort: topic name cannot consist entirely of whitespaces
   [255]
 
+  $ hg topic 'a12#45'
+  abort: invalid topic name: 'a12#45'
+  (topic names can only consist of alphanumeric, '-' and '_' characters)
+  [255]
+
+  $ hg topic 'foo bar'
+  abort: invalid topic name: 'foo bar'
+  (topic names can only consist of alphanumeric, '-' and '_' characters)
+  [255]
+
+this is trying to list topic names
+  $ hg topic ''
+
+  $ hg topic '*12 B23'
+  abort: invalid topic name: '*12 B23'
+  (topic names can only consist of alphanumeric, '-' and '_' characters)
+  [255]
+
 Test commit flag and help text
 
   $ echo stuff >> alpha