Skip to content

Commit 442636b

Browse files
committed
test: add a case for parsing URL spec without name
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
1 parent b1642b5 commit 442636b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/cargo/util_schemas/core/package_id_spec.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -601,5 +601,6 @@ mod tests {
601601
)
602602
.is_err());
603603
assert!(PackageIdSpec::parse("@1.2.3").is_err());
604+
assert!(PackageIdSpec::parse("registry+https://github.com").is_ok());
604605
}
605606
}

0 commit comments

Comments
 (0)