Imported Upstream version 5.10.0.47

Former-commit-id: d0813289fa2d35e1f8ed77530acb4fb1df441bc0
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2018-01-24 17:04:36 +00:00
parent 88ff76fe28
commit e46a49ecf1
5927 changed files with 226314 additions and 129848 deletions

View File

@@ -9,6 +9,7 @@ LIB_MCS_FLAGS = /unsafe
TEST_MCS_FLAGS = $(LIB_MCS_FLAGS)
XTEST_LIB_REFS = System Facades/System.Threading.Tasks Facades/System.Runtime.InteropServices.RuntimeInformation System.Core System.Numerics.Vectors Microsoft.CSharp
XTEST_LIB_FLAGS = -unsafe
LIBRARY_WARN_AS_ERROR = yes
RESX_RESOURCE_STRING = \
../../../external/corefx/src/System.Runtime.Numerics/src/Resources/Strings.resx \

View File

@@ -560,7 +560,7 @@ namespace MonoTests.System.Numerics
Assert.AreEqual (val, (long)a, "#a_" + val);
Assert.AreEqual (val, (long)b, "#b_" + val);
Assert.AreEqual (a, b, "#a == #b (" + val + ")");
} catch (Exception e) {
} catch (Exception) {
Assert.Fail ("could not roundtrip {0}", val);
}
}
@@ -1259,13 +1259,17 @@ namespace MonoTests.System.Numerics
Assert.AreEqual ("0", a.ToString (), "#4");
a = new BigInteger ();
#pragma warning disable 1718
Assert.AreEqual (true, a == a, "#5");
#pragma warning restore
a = new BigInteger ();
#pragma warning disable 1718
Assert.AreEqual (false, a < a, "#6");
#pragma warning restore
a = new BigInteger ();
Assert.AreEqual (true, a < 10l, "#7");
Assert.AreEqual (true, a < 10L, "#7");
a = new BigInteger ();
Assert.AreEqual (true, a.IsEven, "#8");