Chromium Code Reviews| Index: test/cctest/test-types.cc |
| diff --git a/test/cctest/test-types.cc b/test/cctest/test-types.cc |
| index 753457366701c26be2af0c798663fac2e7a092aa..c0b9af6fef672a1a24898668c0db8af7a18433cb 100644 |
| --- a/test/cctest/test-types.cc |
| +++ b/test/cctest/test-types.cc |
| @@ -6,6 +6,7 @@ |
| #include "src/hydrogen-types.h" |
| #include "src/isolate-inl.h" |
| +#include "src/ostreams.h" |
| #include "src/types.h" |
| #include "test/cctest/cctest.h" |
| @@ -1319,6 +1320,13 @@ struct Tests : Rep { |
| TypeHandle type2 = *it2; |
| TypeHandle union12 = T.Union(type1, type2); |
| TypeHandle union21 = T.Union(type2, type1); |
| + OFStream os(stdout); |
|
rossberg
2014/08/05 15:07:53
Yeah, I don't like committing this. Either all tes
neis
2014/08/05 17:01:10
Done.
|
| + type1->PrintTo(os); |
| + os << " \\/ "; |
| + type2->PrintTo(os); |
| + os << " = "; |
| + union12->PrintTo(os); |
| + os << "\n"; |
| CheckEqual(union12, union21); |
| } |
| } |
| @@ -1547,6 +1555,13 @@ struct Tests : Rep { |
| TypeHandle type2 = *it2; |
| TypeHandle intersect12 = T.Intersect(type1, type2); |
| TypeHandle intersect21 = T.Intersect(type2, type1); |
| + OFStream os(stdout); |
| + type1->PrintTo(os); |
| + os << " /\\ "; |
| + type2->PrintTo(os); |
| + os << " = "; |
| + intersect12->PrintTo(os); |
| + os << "\n"; |
| CheckEqual(intersect12, intersect21); |
| } |
| } |