()
| 411 | |
| 412 | #[test] |
| 413 | fn allow_empty_input() { |
| 414 | let mut s = MagicString::new(""); |
| 415 | s.append("xyz"); |
| 416 | assert_eq!(s.to_string(), "xyz"); |
| 417 | s.prepend("xyz"); |
| 418 | assert_eq!(s.to_string(), "xyzxyz"); |
| 419 | } |
| 420 | |
| 421 | #[test] |
| 422 | fn has_changed() { |