tests: update ExternalName api

This commit is contained in:
Pat Hickey
2017-11-22 17:37:08 -08:00
committed by Jakob Stoklund Olesen
parent 803b83c87a
commit eb49d9f8bf
4 changed files with 7 additions and 7 deletions

View File

@@ -447,9 +447,9 @@ mod tests {
#[test]
fn basic() {
let mut f = Function::new();
assert_eq!(f.to_string(), "function %() native {\n}\n");
assert_eq!(f.to_string(), "function u0:0() native {\n}\n");
f.name = ExternalName::new("foo");
f.name = ExternalName::testcase("foo");
assert_eq!(f.to_string(), "function %foo() native {\n}\n");
f.create_stack_slot(StackSlotData::new(StackSlotKind::Local, 4));