Skip to content
Myr

Add a test for a single missing search path

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

authored by DJRHails · committed by David Peter · parent 65b65b3 · Browse files · 1 file+26 added−0 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+26 added−0 removed

  • tests:+26 added−0 removed

1 file+26 added−0 removed

modified:tests/tests.rs+26 added
115 unmodified lines
116117 te.assert_output(&["b.foo", "test1", "test2"], "test1/b.foo");118}119120/// Test search over multiple directory with missing121#[test]122fn test_multi_file_with_missing() {123 let dirs = &["real"];124 let files = &["real/a.foo", "real/b.foo"];125 let te = TestEnv::new(dirs, files);126 te.assert_output(127 &["a.foo", "real", "fake"],128 "real/a.foo",129 );130131 te.assert_output(132 &["", "real", "fake"],133 "real/a.foo134 real/b.foo",135 );136137 te.assert_output(&["a.foo", "real"], "real/a.foo");138139 te.assert_output(140 &["", "real", "fake1", "fake2"],141 "real/a.foo142 real/b.foo",143 );144}145146/// Explicit root path147#[test]148fn test_explicit_root_path() {149 let te = TestEnv::new(DEFAULT_DIRS, DEFAULT_FILES);
1451 unmodified lines