Skip to content

Commit a7ff31f

Browse files
committed
test: add a case for parsing empty names
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
1 parent a092469 commit a7ff31f

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
@@ -597,5 +597,6 @@ mod tests {
597597
"sparse+https://github.com/rust-lang/cargo#0.52.0?branch=dev"
598598
)
599599
.is_err());
600+
assert!(PackageIdSpec::parse("@1.2.3").is_ok());
600601
}
601602
}

0 commit comments

Comments
 (0)