[prettyprint] r579 committed - Fix type test to new literal init for tuples.

0 views
Skip to first unread message

prett...@googlecode.com

unread,
Jun 30, 2010, 8:49:30 PM6/30/10
to pp-d...@googlegroups.com
Revision: 579
Author: thockin
Date: Wed Jun 30 17:44:50 2010
Log: Fix type test to new literal init for tuples.


http://code.google.com/p/prettyprint/source/detail?r=579

Modified:
/trunk/language/tests/type_test.cpp

=======================================
--- /trunk/language/tests/type_test.cpp Wed Jun 30 08:09:52 2010
+++ /trunk/language/tests/type_test.cpp Wed Jun 30 17:44:50 2010
@@ -311,13 +311,13 @@
TEST_ASSERT(!t1.is_assignable_from(t2));
TEST_ASSERT(!t2.is_assignable_from(t1));
}
- // tuple<int,bool> = tuple<int>
+ // tuple<int,bool> = tuple<int> (literal)
{
Type t1(Type::TUPLE);
t1.add_argument(Type::INT);
t1.add_argument(Type::BOOL);

- Type t2(Type::TUPLE);
+ Type t2(Type::TUPLE, Type::LITERAL);
t2.add_argument(Type::INT);

TEST_ASSERT(!t1.is_equal_to(t2));

Reply all
Reply to author
Forward
0 new messages