string.rs 401 B

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