Commit ac192b4f authored by neis@chromium.org's avatar neis@chromium.org

Add debugging output to RangeType test.

R=rossberg@chromium.org
BUG=

Review URL: https://codereview.chromium.org/411873002

git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22552 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 5767cd14
......@@ -605,7 +605,10 @@ struct Tests : Rep {
for (DoubleIterator j = T.doubles.begin(); j != T.doubles.end(); ++j) {
double min = std::min(*i, *j);
double max = std::max(*i, *j);
printf("RangeType: min, max = %f, %f\n", min, max);
TypeHandle type = T.Range(min, max);
printf("RangeType: Min, Max = %f, %f\n",
type->AsRange()->Min(), type->AsRange()->Max());
CHECK(min == type->AsRange()->Min());
CHECK(max == type->AsRange()->Max());
}
......
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