aboutsummaryrefslogtreecommitdiff
path: root/doc-tool/test
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2017-01-11 19:06:50 +0100
committerFelix Mulder <felix.mulder@gmail.com>2017-01-31 14:31:06 +0100
commit280312716753fb226794ff9e2f9259d9c9e8d942 (patch)
tree60d45346f9ba240e9603db1c075ad6741c39887b /doc-tool/test
parent4f177580ff08eeea183cdcfec53eba2888162157 (diff)
downloaddotty-280312716753fb226794ff9e2f9259d9c9e8d942.tar.gz
dotty-280312716753fb226794ff9e2f9259d9c9e8d942.tar.bz2
dotty-280312716753fb226794ff9e2f9259d9c9e8d942.zip
Make `Page#yaml` be `Map[String, String | List[String]]`
YAML front matter can be lists, unfortunately we don't have union types in scala 2
Diffstat (limited to 'doc-tool/test')
-rw-r--r--doc-tool/test/dotty/tools/dottydoc/staticsite/PageTests.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc-tool/test/dotty/tools/dottydoc/staticsite/PageTests.scala b/doc-tool/test/dotty/tools/dottydoc/staticsite/PageTests.scala
index 6f20e28c2..3dab4f02c 100644
--- a/doc-tool/test/dotty/tools/dottydoc/staticsite/PageTests.scala
+++ b/doc-tool/test/dotty/tools/dottydoc/staticsite/PageTests.scala
@@ -20,7 +20,7 @@ class PageTests extends DottyDocTest {
)
assert(
- page.yaml == Map("key" -> ""),
+ page.yaml == Map("key" -> List.empty.asJava),
s"""incorrect yaml, expected "key:" without key in: ${page.yaml}"""
)
@@ -39,7 +39,7 @@ class PageTests extends DottyDocTest {
)
assert(
- page1.yaml == Map("key" -> ""),
+ page1.yaml == Map("key" -> List.empty.asJava),
s"""incorrect yaml, expected "key:" without key in: ${page1.yaml}"""
)