Skip to content

Commit 5ab9771

Browse files
committed
fix macro test
1 parent ac8c865 commit 5ab9771

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

crates/libm-macros/tests/basic.rs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ fn test_fn_extra_expansion() {
146146
let mut vf32 = Vec::new();
147147
let mut vf64 = Vec::new();
148148
let mut vf128 = Vec::new();
149+
let mut vbuiltins = Vec::new();
149150

150151
// Test with no extra, no skip, and no attributes
151152
libm_macros::for_each_function! {
@@ -155,6 +156,7 @@ fn test_fn_extra_expansion() {
155156
ALL_F32 => vf32,
156157
ALL_F64 => vf64,
157158
ALL_F128 => vf128,
159+
ALL_BUILTINS => vbuiltins,
158160
}
159161
}
160162

@@ -170,8 +172,11 @@ fn test_fn_extra_expansion() {
170172
for name in vf32 {
171173
assert!(name.ends_with("f"), "{name}");
172174
}
173-
let _ = vf64;
174175
for name in vf128 {
175176
assert!(name.ends_with("f128"), "{name}");
176177
}
178+
179+
// Nothing to assert here
180+
let _ = vf64;
181+
let _ = vbuiltins;
177182
}

0 commit comments

Comments
 (0)