Commit c3b4097f authored by lrn@chromium.org's avatar lrn@chromium.org

Fix bug in test case that made it fail to compile in non-debug mode.

Using ASSERT_EQ instead of CHECK_EQ means that a variable becomes unused.

Review URL: http://codereview.chromium.org/2475003

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4785 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 9fc31e1f
......@@ -473,11 +473,11 @@ TEST(CachedHashOverflow) {
printf("%s\n", line);
v8::Local<v8::Value> result =
v8::Script::Compile(v8::String::New(line))->Run();
ASSERT_EQ(results[i]->IsUndefined(), result->IsUndefined());
ASSERT_EQ(results[i]->IsNumber(), result->IsNumber());
CHECK_EQ(results[i]->IsUndefined(), result->IsUndefined());
CHECK_EQ(results[i]->IsNumber(), result->IsNumber());
if (result->IsNumber()) {
ASSERT_EQ(Smi::cast(results[i]->ToSmi())->value(),
result->ToInt32()->Value());
CHECK_EQ(Smi::cast(results[i]->ToSmi())->value(),
result->ToInt32()->Value());
}
}
}
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