use crate::{ArrayMap, LinearMap};
#[cfg(test)]
#[test]
fn array_map_len_is_const() {
const fn foo() -> usize {
let f = unsafe { ArrayMap::from_array_unchecked([(1, 1)]) };
f.len()
}
assert_eq!(foo(), 1);
}
#[test]
fn array_map_is_empty_is_const() {
const fn foo() -> bool {
let f = unsafe { ArrayMap::from_array_unchecked([(1, 1)]) };
f.is_empty()
}
assert_eq!(foo(), false);
}
#[test]
fn from_array_unchecked_is_const() {
const fn _foo() {
let _ = unsafe { ArrayMap::from_array_unchecked([(1, 1)]) };
}
}