1 extern crate ropey;
2 
3 use ropey::Rope;
4 
5 const TEXT: &str = include_str!("test_text.txt");
6 
7 #[test]
from_str()8 fn from_str() {
9     // Build rope from file contents
10     let rope = Rope::from_str(TEXT);
11 
12     // Verify rope integrity
13     rope.assert_integrity();
14     rope.assert_invariants();
15 
16     // Verify that they match
17     assert_eq!(rope, TEXT);
18 }
19