changeset 17096:14e44933d175

casecollision: add tests Add more tests to exercise the case collion detection code
author Joshua Redstone <joshua.redstone@fb.com>
date Wed, 27 Jun 2012 12:37:01 -0700
parents 45cf6a91a02d
children 885542e7d9b6
files tests/test-casecollision.t
diffstat 1 files changed, 31 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-casecollision.t	Wed Jun 27 12:28:26 2012 -0700
+++ b/tests/test-casecollision.t	Wed Jun 27 12:37:01 2012 -0700
@@ -31,6 +31,37 @@
   $ hg st
   A A
   A a
+  $ mkdir b
+  $ touch b/c b/D
+  $ hg add b
+  adding b/D
+  adding b/c
+  $ touch b/d b/C
+  $ hg add b/C
+  warning: possible case-folding collision for b/C
+  $ hg add b/d
+  warning: possible case-folding collision for b/d
+  $ touch b/a1 b/a2
+  $ hg add b
+  adding b/a1
+  adding b/a2
+  $ touch b/A2 b/a1.1
+  $ hg add b/a1.1 b/A2
+  warning: possible case-folding collision for b/A2
+  $ touch b/f b/F
+  $ hg add b/f b/F
+  warning: possible case-folding collision for b/f
+  $ touch g G
+  $ hg add g G
+  warning: possible case-folding collision for g
+  $ mkdir h H
+  $ touch h/x H/x
+  $ hg add h/x H/x
+  warning: possible case-folding collision for h/x
+  $ touch h/s H/s
+  $ hg add h/s
+  $ hg add H/s
+  warning: possible case-folding collision for H/s
 
 case changing rename must not warn or abort