Skip to content

Commit d4162ed

Browse files
committed
Explicitly test for new package metadata fields
1 parent d1cacfe commit d4162ed

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

tests/testsuite/metadata.rs

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -968,7 +968,11 @@ fn package_metadata() {
968968
[package]
969969
name = "foo"
970970
version = "0.1.0"
971-
authors = []
971+
authors = ["[email protected]"]
972+
categories = ["database"]
973+
keywords = ["database"]
974+
readme = "README.md"
975+
repository = "https://github.com/rust-lang/cargo"
972976
973977
[package.metadata.bar]
974978
baz = "quux"
@@ -984,14 +988,14 @@ fn package_metadata() {
984988
{
985989
"packages": [
986990
{
987-
"authors": [],
988-
"categories": [],
991+
"authors": ["[email protected]"],
992+
"categories": ["database"],
989993
"name": "foo",
990-
"readme": null,
991-
"repository": null,
994+
"readme": "README.md",
995+
"repository": "https://github.com/rust-lang/cargo",
992996
"version": "0.1.0",
993997
"id": "foo[..]",
994-
"keywords": [],
998+
"keywords": ["database"],
995999
"source": null,
9961000
"dependencies": [],
9971001
"license": null,

0 commit comments

Comments
 (0)