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:
parent
c90de5a469
commit
4e72620a37
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue