Mercurial > public > mercurial-scm > hg-stable
diff tests/test-status-color.t @ 12328:b63f6422d2a7
tests: fix a bunch of pointless #s in unified tests
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 17 Sep 2010 17:03:08 -0500 |
parents | 4134686b83e1 |
children | 22f3353bcc36 |
line wrap: on
line diff
--- a/tests/test-status-color.t Fri Sep 17 17:03:04 2010 -0500 +++ b/tests/test-status-color.t Fri Sep 17 17:03:08 2010 -0500 @@ -178,7 +178,7 @@ [0;30;1mI ignoreddir/file[0m $ cd .. -# check 'status -q' and some combinations +check 'status -q' and some combinations $ hg init repo3 $ cd repo3 @@ -207,9 +207,10 @@ [0;36;1;4m! deleted[0m [0;35;1;4m? unknown[0m -# Run status with 2 different flags. -# Check if result is the same or different. -# If result is not as expected, raise error +Run status with 2 different flags. +Check if result is the same or different. +If result is not as expected, raise error + $ assert() { > hg status --color=always $1 > ../a > hg status --color=always $2 > ../b @@ -229,7 +230,7 @@ > fi > } -# assert flag1 flag2 [0-same | 1-different] +assert flag1 flag2 [0-same | 1-different] $ assert "-q" "-mard" 0 $ assert "-A" "-marduicC" 0 @@ -243,7 +244,8 @@ $ assert "-r" "-d" 1 $ cd .. -# test 'resolve -l' +test 'resolve -l' + $ hg init repo4 $ cd repo4 $ echo "file a" > a