use rhai::Engine; #[test] fn test_chars() { let mut engine = Engine::new(); assert_eq!(engine.eval::("'y'"), Ok('y')); assert_eq!(engine.eval::("'\\u2764'"), Ok('❤')); match engine.eval::("''") { Err(_) => (), _ => assert!(false), } }