Fix RealMatrixFormatTests to always use a fixed locale instead of the default one.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1373554 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Thomas Neidhart 2012-08-15 18:30:18 +00:00
parent c90de5a469
commit 4e72620a37
1 changed files with 3 additions and 3 deletions

View File

@ -341,7 +341,7 @@ public abstract class RealMatrixFormatAbstractTest {
public void testForgottenPrefix() {
ParsePosition pos = new ParsePosition(0);
final String source = "1; 1; 1]";
Assert.assertNull("Should not parse <"+source+">", new RealMatrixFormat().parse(source, pos));
Assert.assertNull("Should not parse <"+source+">", realMatrixFormat.parse(source, pos));
Assert.assertEquals(0, pos.getErrorIndex());
}
@ -349,7 +349,7 @@ public abstract class RealMatrixFormatAbstractTest {
public void testForgottenSeparator() {
ParsePosition pos = new ParsePosition(0);
final String source = "{{1, 1 1}}";
Assert.assertNull("Should not parse <"+source+">", new RealMatrixFormat().parse(source, pos));
Assert.assertNull("Should not parse <"+source+">", realMatrixFormat.parse(source, pos));
Assert.assertEquals(7, pos.getErrorIndex());
}
@ -357,7 +357,7 @@ public abstract class RealMatrixFormatAbstractTest {
public void testForgottenSuffix() {
ParsePosition pos = new ParsePosition(0);
final String source = "{{1, 1, 1 ";
Assert.assertNull("Should not parse <"+source+">", new RealMatrixFormat().parse(source, pos));
Assert.assertNull("Should not parse <"+source+">", realMatrixFormat.parse(source, pos));
Assert.assertEquals(9, pos.getErrorIndex());
}
}