integration tests

This commit is contained in:
NikVolf
2017-04-03 23:56:21 +03:00
parent 38da8860ed
commit 6dc392bf18
3 changed files with 34 additions and 6 deletions

View File

@ -61,7 +61,7 @@ impl FuncBody {
}
pub fn locals(&self) -> &[Local] { &self.locals }
pub fn code(&self) -> &Opcodes { &self.opcodes }
}
@ -89,7 +89,7 @@ impl Serialize for FuncBody {
data.into_iter().map(Into::into),
);
counted_list.serialize(&mut counted_writer)?;
let code = self.opcodes;
code.serialize(&mut counted_writer)?;