Skip to content
Myr

Add expected behavior as unit tests

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by David Peter · parent d603411 · Browse files · 1 file+18 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+18 added−1 removed

  • tests:+18 added−1 removed

1 file+18 added−1 removed

modified:tests/tests.rs+18 added-1 removed
602 unmodified lines
603 let mut te = TestEnv::new(DEFAULT_DIRS, DEFAULT_FILES);604 te.create_broken_symlink("broken_symlink")605 .expect("Failed to create broken symlink.");606607 te.assert_output(&["--follow", "--type", "f", "symlink"], "broken_symlink");607 te.assert_output(608 &["symlink"],609 "broken_symlink610 symlink",611 );612 te.assert_output(613 &["--type", "symlink", "symlink"],614 "broken_symlink615 symlink",616 );617618 te.assert_output(&["--type", "file", "symlink"], "");619620 te.assert_output(621 &["--follow", "--type", "symlink", "symlink"],622 "broken_symlink",623 );624 te.assert_output(&["--follow", "--type", "file", "symlink"], "");625}626627/// Null separator (--print0)628#[test]
844 unmodified lines