Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(608)

Unified Diff: runtime/vm/bigint_test.cc

Issue 2977143002: Revert "Option to truncate integers to 64 bits, part 2" (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/lib/isolate.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/bigint_test.cc
diff --git a/runtime/vm/bigint_test.cc b/runtime/vm/bigint_test.cc
index 4644a4c3095849e0ad95dfd83cba8941f58a6771..8ccf464e2e19589a8822be19b1fcdc466ee8ba20 100644
--- a/runtime/vm/bigint_test.cc
+++ b/runtime/vm/bigint_test.cc
@@ -10,10 +10,6 @@
namespace dart {
TEST_CASE(BigintSmi) {
- if (Bigint::IsDisabled()) {
- return;
- }
-
{
const Smi& smi = Smi::Handle(Smi::New(5));
const Bigint& bigint = Bigint::Handle(Bigint::NewFromInt64(smi.Value()));
@@ -69,10 +65,6 @@ TEST_CASE(BigintSmi) {
}
TEST_CASE(BigintInt64) {
- if (Bigint::IsDisabled()) {
- return;
- }
-
const int64_t kValue = 100000000;
const int64_t kValue64 = kValue * kValue;
Bigint& bigint = Bigint::Handle(Bigint::NewFromInt64(kValue));
@@ -87,10 +79,6 @@ TEST_CASE(BigintInt64) {
}
TEST_CASE(BigintUint64) {
- if (Bigint::IsDisabled()) {
- return;
- }
-
const Bigint& one = Bigint::Handle(Bigint::NewFromUint64(1));
EXPECT(one.FitsIntoInt64());
EXPECT(one.FitsIntoUint64());
@@ -104,10 +92,6 @@ TEST_CASE(BigintUint64) {
}
TEST_CASE(BigintDouble) {
- if (Bigint::IsDisabled()) {
- return;
- }
-
Bigint& bigint = Bigint::Handle(Bigint::NewFromInt64(5));
EXPECT_EQ(5.0, bigint.AsDoubleValue());
@@ -240,10 +224,6 @@ TEST_CASE(BigintDouble) {
}
TEST_CASE(BigintHexStrings) {
- if (Bigint::IsDisabled()) {
- return;
- }
-
Zone* zone = Thread::Current()->zone();
{
const Bigint& bigint = Bigint::Handle(Bigint::NewFromCString("0x0"));
@@ -424,10 +404,6 @@ TEST_CASE(BigintHexStrings) {
}
TEST_CASE(BigintDecStrings) {
- if (Bigint::IsDisabled()) {
- return;
- }
-
Zone* zone = Thread::Current()->zone();
{
const Bigint& bigint = Bigint::Handle(Bigint::NewFromCString("0x0"));
@@ -552,10 +528,6 @@ static void TestBigintCompare(const char* a, const char* b, int compare) {
}
TEST_CASE(BigintCompare) {
- if (Bigint::IsDisabled()) {
- return;
- }
-
TestBigintCompare("0x0", "0x0", 0);
TestBigintCompare("0x1", "0x1", 0);
TestBigintCompare("-0x1", "-0x1", 0);
@@ -604,10 +576,6 @@ TEST_CASE(BigintCompare) {
}
TEST_CASE(BigintDecimalStrings) {
- if (Bigint::IsDisabled()) {
- return;
- }
-
Zone* zone = Thread::Current()->zone();
{
const Bigint& bigint = Bigint::Handle(Bigint::NewFromCString("0"));
« no previous file with comments | « runtime/lib/isolate.cc ('k') | runtime/vm/dart_api_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698