extern crate sp_ropey; use sp_ropey::Rope; const TEXT: &str = include_str!("test_text.txt"); #[test] fn from_str() { // Build rope from file contents let rope = Rope::from_str(TEXT); // Verify rope integrity rope.assert_integrity(); rope.assert_invariants(); // Verify that they match assert_eq!(rope, TEXT); }