diff test/org/tmatesoft/hg/test/TestIgnore.java @ 348:a0864b2892cd

Expose errors reading mercurial control files with exception
author Artem Tikhomirov <tikhomirov.artem@gmail.com>
date Thu, 24 Nov 2011 02:57:03 +0100
parents 58016b1b8554
children e732521a9eb4
line wrap: on
line diff
--- a/test/org/tmatesoft/hg/test/TestIgnore.java	Tue Nov 22 05:25:57 2011 +0100
+++ b/test/org/tmatesoft/hg/test/TestIgnore.java	Thu Nov 24 02:57:03 2011 +0100
@@ -101,7 +101,7 @@
 	@Test
 	public void testSegmentsRegexMatch() throws Exception {
 		// regex patterns that don't start with explicit ^ are allowed to match anywhere in the string
-		String s = "syntax:regex\n/\\.git\n^abc\n";
+		String s = "syntax:regexp\n/\\.git\n^abc\n";
 		HgIgnore hgIgnore = HgInternals.newHgIgnore(new StringReader(s));
 		Path p = Path.create(".git/aa");
 		errorCollector.assertTrue(p.toString(), !hgIgnore.isIgnored(p));