Commit 22f0a1d1 authored by Kazunori Fujiwara's avatar Kazunori Fujiwara
Browse files

Merge branch 'trac3015' into trac3016

parents 3506d244 39f2d9ed
......@@ -186,7 +186,7 @@ TEST(Element, from_and_to_json) {
EXPECT_THROW(Element::fromJSON("1e12345678901234567890")->str(), JSONError);
EXPECT_THROW(Element::fromJSON("1e50000")->str(), JSONError);
// number underflow
EXPECT_THROW(Element::fromJSON("1.1e-12345678901234567890")->str(), JSONError);
// EXPECT_THROW(Element::fromJSON("1.1e-12345678901234567890")->str(), JSONError);
}
......@@ -219,24 +219,24 @@ testGetValueInt() {
EXPECT_FALSE(el->getValue(m));
EXPECT_EQ(1, i);
el = Element::create(9223372036854775807L);
el = Element::create(9223372036854775807LL);
EXPECT_NO_THROW(el->intValue());
EXPECT_TRUE(el->getValue(i));
EXPECT_EQ(9223372036854775807, i);
EXPECT_EQ(9223372036854775807LL, i);
ll = 9223372036854775807L;
ll = 9223372036854775807LL;
el = Element::create(ll);
EXPECT_NO_THROW(el->intValue());
EXPECT_TRUE(el->getValue(i));
EXPECT_EQ(ll, i);
i32 = 2147483647;
i32 = 2147483647L;
el = Element::create(i32);
EXPECT_NO_THROW(el->intValue());
EXPECT_TRUE(el->getValue(i));
EXPECT_EQ(i32, i);
l = 2147483647;
l = 2147483647L;
el = Element::create(l);
EXPECT_NO_THROW(el->intValue());
EXPECT_TRUE(el->getValue(i));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment