From deae3bfbe0a5bda997f3033693879042a058de3a Mon Sep 17 00:00:00 2001 From: Ilya Ryzhenkov Date: Fri, 11 Jul 2014 17:16:09 +0400 Subject: Bootstrapped TDD, first test red then green. --- test/src/DiscoveryTest.kt | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test/src') diff --git a/test/src/DiscoveryTest.kt b/test/src/DiscoveryTest.kt index 690f0404..f854b4d6 100644 --- a/test/src/DiscoveryTest.kt +++ b/test/src/DiscoveryTest.kt @@ -1,12 +1,15 @@ package com.jetbrains.dokka.tests import org.junit.Test +import kotlin.test.* public class FunctionTest { Test fun function() { - verifyFiles("test/data/function.kt") { - + verifyFiles("test/data/function.kt") { model -> + val item = model.items.single() + assertEquals("fn", item.name) + assertEquals("doc", item.doc) } } } \ No newline at end of file -- cgit