Permalink
Browse files

update test for new def of Tuple

  • Loading branch information...
1 parent f3e99e9 commit ae9cbcdad95201f3558c3c85dba6ba75153d8409 @gavinking gavinking committed Nov 1, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 test/main/tuples/tuples.ceylon
@@ -7,12 +7,12 @@ Float add(<Float,Float> floats=(1.0, 2.0)) {
}
void test() {
- @type["Tuple<String,Tuple<Integer,Tuple<Float,Unit>>>"]
+ @type["Tuple<String|Integer|Float,String,Tuple<Integer|Float,Integer,Tuple<Float,Float,Empty>>>"]
value tup = triple("hello", 0, 0.0);
@type["String"] value first = tup.first;
@type["Integer"] value second = tup.rest.first;
@type["Float"] value third = tup.rest.rest.first;
- @type["Unit"] value nuthin = tup.rest.rest.rest;
+ @type["Empty"] value nuthin = tup.rest.rest.rest;
<String, String> hibye = ("hello", "goodbye");
<String, String> fun() {
@@ -21,4 +21,5 @@ void test() {
@type["String"] value hi = hibye.first;
@type["String"] value bye = hibye.rest.first;
add((1.0, 2.0));
+ Sequence<String> strings = hibye;
}

0 comments on commit ae9cbcd

Please sign in to comment.