fish-shell/fish-rust/widestring-suffix/tests/test.rs

25 lines
311 B
Rust
Raw Normal View History

2023-01-15 06:56:24 +08:00
use widestring_suffix::widestrs;
mod wchar {
macro_rules! L {
($string:expr) => {
42
};
}
pub(crate) use L;
}
#[widestrs]
mod stuff {
pub fn test1() {
let s = "abc"L;
assert_eq!(s, 42);
}
}
#[test]
fn test_widestring() {
stuff::test1();
}