Skip to content

Commit 8113b45

Browse files
russcamswallez
authored andcommitted
Handle i32 parts
1 parent 261a4d6 commit 8113b45

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

yaml_test_runner/skip.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -122,14 +122,6 @@ tests:
122122
platinum/unsigned_long/60_collapse.yml:
123123
- "*"
124124

125-
platinum/vector-tile/10_basic.yml:
126-
# expected `i32`, found `&str`
127-
- "*"
128-
129-
platinum/vector-tile/20_aggregations.yml:
130-
# expected `i32`, found `&str`
131-
- "*"
132-
133125
platinum/xpack/20_info.yml:
134126
# Expects "trial" license but gets "enterprise"
135127
- "XPack Info API"

yaml_test_runner/src/step/do.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -791,10 +791,14 @@ impl ApiCall {
791791
let s = b.to_string();
792792
Ok(quote! { #s })
793793
}
794-
Yaml::Integer(i) => match ty.ty {
795-
TypeKind::Long => Ok(quote! { #i }),
794+
Yaml::Integer(l) => match ty.ty {
795+
TypeKind::Long => Ok(quote! { #l }),
796+
TypeKind::Integer => {
797+
let i = *l as i32;
798+
Ok(quote! { #i })
799+
}
796800
_ => {
797-
let s = i.to_string();
801+
let s = l.to_string();
798802
Ok(quote! { #s })
799803
}
800804
},

0 commit comments

Comments
 (0)