| 123456789101112131415161718192021222324 |
- extern crate exa;
- use exa::Exa;
- /// --------------------------------------------------------------------------
- /// These tests assume that the ‘generate annoying testcases’ script has been
- /// run first. Otherwise, they will break!
- /// --------------------------------------------------------------------------
- static DIRECTORIES: &'static str = concat!(
- "\x1B[1;34m", "attributes", "\x1B[0m", '\n',
- //"\x1B[1;34m", "filenames", "\x1B[0m", '\n',
- "\x1B[1;34m", "links", "\x1B[0m", '\n',
- "\x1B[1;34m", "passwd", "\x1B[0m", '\n',
- "\x1B[1;34m", "permissions", "\x1B[0m", '\n',
- );
- #[test]
- fn directories() {
- let mut output = Vec::<u8>::new();
- Exa::new( &[ "-1", "testcases" ], &mut output).unwrap().run().unwrap();
- assert_eq!(output, DIRECTORIES.as_bytes());
- }
|