From a45b1d406f89fa285c1eb52f9ec032c39da928ad Mon Sep 17 00:00:00 2001 From: J Henry Waugh Date: Sun, 9 Aug 2020 11:47:11 -0500 Subject: [PATCH] Add only_i32 feature support --- tests/macro_unroll.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/macro_unroll.rs b/tests/macro_unroll.rs index 9b4a7b75..c253666f 100644 --- a/tests/macro_unroll.rs +++ b/tests/macro_unroll.rs @@ -42,6 +42,9 @@ fn test_generated_adds() -> Result<(), Box> { engine.load_package(m); + #[cfg(feature = "only_i32")] + assert_eq!(engine.eval::("let a = 0; add_i32(a, 1)")?, 1); + #[cfg(not(feature = "only_i32"))] assert_eq!(engine.eval::("let a = 0; add_i64(a, 1)")?, 1); Ok(())