mirror of
https://github.com/chatmail/core.git
synced 2026-05-03 13:26:28 +03:00
Remove dc_arr_to_string function that was used only once
This commit is contained in:
committed by
holger krekel
parent
afcf48f833
commit
648d3d78aa
@@ -1021,17 +1021,3 @@ fn test_wrong_db() {
|
||||
assert_eq!(res, 0);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_arr_to_string() {
|
||||
let arr2: [uint32_t; 4] = [
|
||||
0i32 as uint32_t,
|
||||
12i32 as uint32_t,
|
||||
133i32 as uint32_t,
|
||||
1999999i32 as uint32_t,
|
||||
];
|
||||
|
||||
let str_0 = unsafe { dc_arr_to_string(arr2.as_ptr(), 4i32) };
|
||||
assert_eq!(to_string(str_0), "0,12,133,1999999");
|
||||
unsafe { free(str_0 as *mut _) };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user