changeset 458:c95cd5994ba2

Tests: with more precise relations for files/dirs, ImmediateChild is the right expectation
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Tue, 19 Jun 2012 21:06:21 +0200
parents d78cb5ca3053
children 55e9588b84b8
files test/org/tmatesoft/hg/test/TestStatus.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/org/tmatesoft/hg/test/TestStatus.java	Mon Jun 18 17:06:42 2012 +0200
+++ b/test/org/tmatesoft/hg/test/TestStatus.java	Tue Jun 19 21:06:21 2012 +0200
@@ -437,7 +437,7 @@
 		assertTrue(r.getAdded().isEmpty());
 		assertTrue(r.getRemoved().size() == 2);
 		for (Path p : r.getRemoved()) {
-			assertEquals(p.compareWith(dir), Path.CompareResult.Nested);
+			assertEquals(Path.CompareResult.ImmediateChild, p.compareWith(dir));
 		}
 		assertTrue(r.getUnknown().isEmpty());
 		assertTrue(r.getClean().size() == 1);