diff options
Diffstat (limited to 'tests/run-make-fulldeps/save-analysis-rfc2126/validate_json.py')
-rw-r--r-- | tests/run-make-fulldeps/save-analysis-rfc2126/validate_json.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/run-make-fulldeps/save-analysis-rfc2126/validate_json.py b/tests/run-make-fulldeps/save-analysis-rfc2126/validate_json.py new file mode 100644 index 000000000..882d29a8b --- /dev/null +++ b/tests/run-make-fulldeps/save-analysis-rfc2126/validate_json.py @@ -0,0 +1,7 @@ +#!/usr/bin/env python + +import sys +import json + +crates = json.loads(sys.stdin.readline().strip())["prelude"]["external_crates"] +assert any(map(lambda c: c["id"]["name"] == "krate2", crates)) |