Skip to content

Commit

Permalink
Verify that headers parse correctly. Fixes #189.
Browse files Browse the repository at this point in the history
  • Loading branch information
desplesda committed Mar 8, 2020
1 parent 6216d27 commit 6e78eb6
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions Tests/TestCases/NodeHeaders.testplan
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# no-op - this file does not contain lines to be tested
21 changes: 21 additions & 0 deletions Tests/TestCases/NodeHeaders.yarn
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
title: Start
---
// this test is a no-op - the test passes if the file compiles.
// Start demonstrates a node with a single header, its title (which is mandatory).
// TestNode1 demonstrates a node with two headers: its title, and a populated tag header.
// TestNode2 demonstrates a node with two headers: its title, and a tag header with no text.
// TestNode3 demonstrates a node with three headers: its title, an empty tag, and a populated tag.
===
title: TestNode1
tags: one two
---
===
title: TestNode2
tags:
---
===
title: TestNode3
tags:
test: example
---
===

0 comments on commit 6e78eb6

Please sign in to comment.