rustdoc: Add a test that we can tolerate missing external crates

This commit is contained in:
Brian Anderson 2012-02-17 17:34:44 -08:00
parent 4e44437180
commit f8f28e29be

View File

@ -221,11 +221,17 @@ fn srv_should_resolve_non_existant_imports() {
}
#[test]
fn srv_sholud_resolve_non_existant_uses() {
fn srv_should_resolve_non_existant_uses() {
let source = "use forble; fn a() { }";
mk_srv_from_str(source);
}
#[test]
fn should_ignore_external_import_paths_that_dont_exist() {
let source = "use forble; import forble::bippy;";
mk_srv_from_str(source);
}
fn exec<T>(
srv: srv,
f: fn~(ctxt: ctxt) -> T