mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-29 06:13:20 +00:00
24 lines
311 B
Rust
24 lines
311 B
Rust
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();
|
|
}
|