Explicitly test for new package metadata fields
authorYusuf Simonson <simonson@gmail.com>
Wed, 18 Apr 2018 08:16:50 +0000 (15:16 +0700)
committerYusuf Simonson <simonson@gmail.com>
Wed, 18 Apr 2018 08:16:50 +0000 (15:16 +0700)
tests/testsuite/metadata.rs

index 0716df5854283bd5584fd1608ac212b4864d797c..f0b5e104be0e9d40bfb5f1a830782cf8683a8788 100644 (file)
@@ -968,7 +968,11 @@ fn package_metadata() {
             [package]
             name = "foo"
             version = "0.1.0"
-            authors = []
+            authors = ["wycats@example.com"]
+            categories = ["database"]
+            keywords = ["database"]
+            readme = "README.md"
+            repository = "https://github.com/rust-lang/cargo"
 
             [package.metadata.bar]
             baz = "quux"
@@ -984,14 +988,14 @@ fn package_metadata() {
     {
         "packages": [
             {
-                "authors": [],
-                "categories": [],
+                "authors": ["wycats@example.com"],
+                "categories": ["database"],
                 "name": "foo",
-                "readme": null,
-                "repository": null,
+                "readme": "README.md",
+                "repository": "https://github.com/rust-lang/cargo",
                 "version": "0.1.0",
                 "id": "foo[..]",
-                "keywords": [],
+                "keywords": ["database"],
                 "source": null,
                 "dependencies": [],
                 "license": null,