string.rs 323 B

123456789101112
  1. extern crate ralloc;
  2. mod util;
  3. #[test]
  4. fn simple_string() {
  5. util::multiply(|| {
  6. assert_eq!(&String::from("you only live twice"), "you only live twice");
  7. assert_eq!(&String::from("wtf have you smoked"), "wtf have you smoked");
  8. assert_eq!(&String::from("get rekt m8"), "get rekt m8");
  9. });
  10. }