Update tests

This commit is contained in:
Jeehoon Kang
2020-06-12 05:05:23 +09:00
parent c2380efbb0
commit a12db7949c
256 changed files with 49817 additions and 49542 deletions

View File

@@ -20,7 +20,17 @@ impl WriteLine for TranslationUnit {
let fields = fields
.iter()
.map(|f| f.deref().to_string())
.map(|f| {
format!(
"{}:{}",
if let Some(name) = f.name() {
name
} else {
"%anon"
},
f.deref().to_string()
)
})
.collect::<Vec<_>>()
.join(", ");