Update mem2reg test

This commit is contained in:
Jeehoon Kang
2020-04-24 02:01:07 +00:00
parent 7c53818f73
commit 61b2162408
4 changed files with 252 additions and 29 deletions

View File

@@ -259,12 +259,12 @@ impl WriteString for BlockExit {
default,
cases,
} => format!(
"switch {} default: {} [\n{}\n ]",
"switch {} default {} [\n{}\n ]",
value.write_string(),
default,
cases
.iter()
.map(|(v, b)| format!(" {}:{}, {}", v, v.dtype(), b))
.map(|(v, b)| format!(" {}:{} {}", v, v.dtype(), b))
.collect::<Vec<_>>()
.join("\n")
),