1 2 3 4 5 6 7 8 9 10 11 12 13
use crate::constants::KANA_SLASH_DOT; /// Tests if char is '・' #[inline] pub fn is_char_slash_dot(char: char) -> bool { char as u32 == KANA_SLASH_DOT } #[test] fn is_char_slash_dot_test() { assert!(is_char_slash_dot('・')); assert!(!is_char_slash_dot('/')); }