()
| 744 | |
| 745 | #[test] |
| 746 | fn test_memory_clear() { |
| 747 | let wc = Memory::new(); |
| 748 | wc.add_file("a.txt", b""); |
| 749 | wc.add_file("b.txt", b""); |
| 750 | assert_eq!(wc.len(), 2); |
| 751 | |
| 752 | wc.clear(); |
| 753 | assert!(wc.is_empty()); |
| 754 | } |
| 755 | |
| 756 | // ------------------------------------------------------------------------- |
| 757 | // File Operations Tests |