test: Fix tests.
This commit is contained in:
parent
9a17ef9b52
commit
d661711cc2
104 changed files with 398 additions and 273 deletions
|
@ -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));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue