1
Fork 0

test: Fix tests.

This commit is contained in:
Patrick Walton 2013-03-06 19:09:17 -08:00
parent 9a17ef9b52
commit d661711cc2
104 changed files with 398 additions and 273 deletions

View file

@ -54,7 +54,8 @@ impl gen_send for message {
message(ref _id, span, ref tys, this, Some(ref next_state)) => {
debug!("pipec: next state exists");
let next = this.proto.get_state(next_state.state);
fail_unless!(next_state.tys.len() == next.generics.ty_params.len());
fail_unless!(next_state.tys.len() ==
next.generics.ty_params.len());
let arg_names = tys.mapi(|i, _ty| cx.ident_of(~"x_"+i.to_str()));
let args_ast = vec::map2(arg_names, *tys, |n, t| cx.arg(*n, *t));