From b643bf6f4b4c29676ce3301d92b7880b268d6722 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Thu, 5 Nov 2015 15:51:23 +0100 Subject: add tests; fixes related to qualified names of types --- test/src/TestAPI.kt | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/src/TestAPI.kt') diff --git a/test/src/TestAPI.kt b/test/src/TestAPI.kt index 79b5ba77..33cf4908 100644 --- a/test/src/TestAPI.kt +++ b/test/src/TestAPI.kt @@ -62,6 +62,9 @@ public fun verifyModel(source: String, withKotlinRuntime: Boolean = false, format: String = "html", verifier: (DocumentationModule) -> Unit) { + if (!File(source).exists()) { + throw IllegalArgumentException("Can't find test data file $source") + } verifyModel(contentRootFromPath(source), withJdk = withJdk, withKotlinRuntime = withKotlinRuntime, -- cgit