string.rs 303 B

12345678910
  1. extern crate ralloc;
  2. #[test]
  3. fn test() {
  4. assert_eq!(&String::from("you only live twice"), "you only live twice");
  5. assert_eq!(&String::from("wtf have you smoked"), "wtf have you smoked");
  6. assert_eq!(&String::from("get rekt m8"), "get rekt m8");
  7. ralloc::lock().debug_assert_no_leak();
  8. }