changeset 6829:3977624060dc

tests: add another test case for FQBN in hg branch, with non-ASCII characters
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 25 Feb 2024 17:55:06 -0300
parents 90f867d5be22
children c539a2fb600d
files tests/test-namespaces.t
diffstat 1 files changed, 7 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-namespaces.t	Sun Nov 19 23:00:11 2023 -0300
+++ b/tests/test-namespaces.t	Sun Feb 25 17:55:06 2024 -0300
@@ -52,6 +52,13 @@
   $ cat .hg/topic-namespace
   \xc3\xa6 (esc)
 
+  $ hg --encoding utf-8 branch
+  default//æ/feature
+  $ hg --encoding ascii branch
+  default//?/feature
+  $ hg --encoding latin1 branch
+  default//\xe6/feature (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)