feat: add dependency

This commit is contained in:
2023-01-20 22:36:19 +08:00
parent 68e8d103b4
commit cf8e579f27
644 changed files with 150099 additions and 14 deletions

View File

@@ -0,0 +1,15 @@
use boa_macros::utf16;
#[test]
fn literal() {
let utf16 = utf16!("hello!");
let manual = "hello!".encode_utf16().collect::<Vec<_>>();
assert_eq!(manual, utf16);
}
#[test]
fn utf16() {
let utf16 = utf16!("hello!😁😁😁");
let manual = "hello!😁😁😁".encode_utf16().collect::<Vec<_>>();
assert_eq!(manual, utf16);
}