Skip to content

Commit 412bbb9

Browse files
committed
refactor: Removing some unused code
1 parent f179dfc commit 412bbb9

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/lib.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,6 @@ pub use bitify_impl::main::bitify_func;
77
mod tests {
88
use super::*;
99

10-
const fn test() -> i32 {
11-
const fn test2(x: i32) -> i32 {
12-
x + 1
13-
}
14-
15-
test2(1)
16-
}
17-
1810
#[test]
1911
fn test_array() {
2012
let x = arrr!([1u8, 2, 3, 4] as [i8; 10]);

tests/test_expand_array.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ fn test_arrr_u8_bytestr() {
4040
);
4141
}
4242

43+
#[test]
4344
fn test_arrr_u8_str() {
4445
let output: [u8; 10] = arrr!("hello" as [u8; 10]);
4546

@@ -49,6 +50,7 @@ fn test_arrr_u8_str() {
4950
);
5051
}
5152

53+
#[test]
5254
fn test_arr_u8_c_char() {
5355
let output: [::std::ffi::c_char; 10] =
5456
arrr!([104u8, 101, 108, 108, 111] as [::std::ffi::c_char; 10]);
@@ -58,6 +60,7 @@ fn test_arr_u8_c_char() {
5860
);
5961
}
6062

63+
#[test]
6164
fn test_arr_u8_c_str() {
6265
let output: [::std::ffi::c_char; 10] = arrr!(c"hello" as [::std::ffi::c_char; 10]);
6366
assert_eq!(

0 commit comments

Comments
 (0)