summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/menu.test10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/menu.test b/tests/menu.test
index e330417..a114269 100644
--- a/tests/menu.test
+++ b/tests/menu.test
@@ -4134,6 +4134,16 @@ test menu-40.12 {identifiers - delete by id} -setup {
} -cleanup {
destroy .m
} -result {e001 e002 cmd9}
+test menu-40.12 {identifiers - duplicate} -setup {
+ destroy .m
+} -body {
+ menu .m
+ .m add command foo -label 1
+ .m add command bar -label 2
+ .m add command foo -label 3
+} -cleanup {
+ destroy .m
+} -returnCodes error -result {entry "foo" already exists}
# cleanup
imageFinish