[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [bug #5057] TestDecimalParse test case broken by local
From: |
nobody |
Subject: |
[Pnet-developers] [bug #5057] TestDecimalParse test case broken by locale settings. |
Date: |
Wed, 03 Sep 2003 14:14:44 -0400 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 |
=================== BUG #5057: FULL BUG SNAPSHOT ===================
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=5057&group_id=353
Submitted by: adrianpj Project: DotGNU Portable.NET
Submitted on: Wed 09/03/03 at 18:14
Category: None Severity: 5 - Major
Bug Group: None Resolution: None
Assigned to: None Status: Open
Summary: TestDecimalParse test case broken by locale settings.
Original Submission: It seems locale is not taken into account in this test.
LC_ALL=es_ES
LANG=es_ES.ISO-8859-1
It works when LC_ALL=C and LANG=C
$ make check
Making check in runtime
make[1]: Entering directory `/rescue/dotGNU/src/pnetlib/tests/runtime'
"/rescue/dotGNU/bin/csant" --compiler cscc -Dcscc="/rescue/dotGNU/bin/cscc"
-Dcscc.plugins.cs="/rescue/dotGNU/lib/cscc/plugins/cscc-cs" --profile
"../../profiles/full" -f Testruntime.build all
Building project `pnetlib Testruntime'
Building target `all' for project `pnetlib Testruntime'
Leaving target `all' for project `pnetlib Testruntime'
Ending project `pnetlib Testruntime'
make check-TESTS
make[2]: Entering directory `/rescue/dotGNU/src/pnetlib/tests/runtime'
Suite: Runtime Tests
Suite: Core Class Tests
TestArrayBinarySearch ... ok
TestArrayClear ... ok
TestArrayCopy ... ok
TestArraySort ... ok
TestBooleanConstants ... ok
TestBooleanCompareTo ... ok
TestBooleanEquals ... ok
TestBooleanGetHashCode ... ok
TestBooleanParse ... ok
TestBooleanToString ... ok
TestBooleanIConvertible ... ok
TestDecimalParse ... threw exception: System.FormatException: The supplied
value did not have the correct format
at System.Private.NumberParser.ParseDecimal(String, NumberStyles,
NumberFormatInfo) in ./System/Private/NumberParser.cs:1099
at System.Decimal.Parse(String, NumberStyles, IFormatProvider) in
./System/Decimal.cs:327
at System.Decimal.Parse(String) in ./System/Decimal.cs:332
at TestDecimal.TestDecimalParse() in ./System/TestDecimal.cs:50
at System.Reflection.ClrMethod.Invoke(Object, BindingFlags, Binder,
Object[], CultureInfo)
at System.Reflection.MethodBase.Invoke(Object, Object[]) in
./System/Reflection/MethodBase.cs:58
at CSUnit.TestCase.RunTest() in ./TestCase.cs:104
at CSUnit.TestCase.Run(TestResult) in ./TestCase.cs:47
at CSUnit.TestSuite.Run(TestResult) in ./TestSuite.cs:103
at CSUnit.TestSuite.Run(TestResult) in ./TestSuite.cs:103
at CSUnit.TestMain.Main(String[]) in ./TestMain.cs:247
TestDecimalToString ... failed: CSUnit.TestAssertFailed: Test failed: 1.13
expected: <1.13>, but was: <1,13>
at CSUnit.TestCase.Fail(String) in ./TestCase.cs:148
at CSUnit.TestCase.EqFail(String, Object, Object) in ./TestCase.cs:192
at CSUnit.TestCase.AssertEquals(String, String, String) in
./TestCase.cs:283
at TestDecimal.TestDecimalToString() in ./System/TestDecimal.cs:85
at System.Reflection.ClrMethod.Invoke(Object, BindingFlags, Binder,
Object[], CultureInfo)
at System.Reflection.MethodBase.Invoke(Object, Object[]) in
./System/Reflection/MethodBase.cs:58
at CSUnit.TestCase.RunTest() in ./TestCase.cs:104
at CSUnit.TestCase.Run(TestResult) in ./TestCase.cs:47
at CSUnit.TestSuite.Run(TestResult) in ./TestSuite.cs:103
at CSUnit.TestSuite.Run(TestResult) in ./TestSuite.cs:103
at CSUnit.TestMain.Main(String[]) in ./TestMain.cs:247
TestDoubleParse ... ok
TestDoubleToString ... failed: CSUnit.TestAssertFailed: Test failed: 1.13
expected: <1.13>, but was: <1,13>
at CSUnit.TestCase.Fail(String) in ./TestCase.cs:148
at CSUnit.TestCase.EqFail(String, Object, Object) in ./TestCase.cs:192
at CSUnit.TestCase.AssertEquals(String, String, String) in
./TestCase.cs:283
at TestDouble.TestDoubleToString() in ./System/TestDouble.cs:85
at System.Reflection.ClrMethod.Invoke(Object, BindingFlags, Binder,
Object[], CultureInfo)
at System.Reflection.MethodBase.Invoke(Object, Object[]) in
./System/Reflection/MethodBase.cs:58
at CSUnit.TestCase.RunTest() in ./TestCase.cs:104
at CSUnit.TestCase.Run(TestResult) in ./TestCase.cs:47
at CSUnit.TestSuite.Run(TestResult) in ./TestSuite.cs:103
at CSUnit.TestSuite.Run(TestResult) in ./TestSuite.cs:103
at CSUnit.TestMain.Main(String[]) in ./TestMain.cs:247
TestSByteParseString0 ... ok
[snipped]
No Followups Have Been Posted
CC list is empty
No files currently attached
For detailed info, follow this link:
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=5057&group_id=353
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Pnet-developers] [bug #5057] TestDecimalParse test case broken by locale settings.,
nobody <=