Skip to content

Commit

Permalink
Test UnorderedList asText
Browse files Browse the repository at this point in the history
  • Loading branch information
MaximilianKleissl committed Jun 18, 2020
1 parent 4020591 commit d72f3cc
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
as yet unclassified
testTextAttributesOfLevels1To4

(Dictionary newFrom: {'- L1'->14. ' - L2'->12. ' - L3'->10. ' - L4'->10})
keysAndValuesDo: [:string :size | | line parsedText |
line := MarkdownLine newFrom: string with: MarkdownStyleSettings default.
parsedText := (MarkdownUnorderedList newFrom: line) asText.
self
assertRuns: {4}
values: {{self fontSized: size}}
areStyleOf: parsedText.]
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
"testMayBeginWithCorrectIndentation" : "MK 5/27/2020 14:14",
"testMayBeginWithCorrectIndentationWithText" : "MK 5/27/2020 14:14",
"testMayBeginWithWrongIndentation" : "cg 5/27/2020 13:02",
"testMayNotBeginWithUnspacedText" : "cg 5/27/2020 13:01" } }
"testMayNotBeginWithUnspacedText" : "cg 5/27/2020 13:01",
"testTextAttributesOfLevels1To4" : "MK 6/18/2020 12:32" } }
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
"parseBinary" : "MAS 5/28/2020 11:10",
"parseIdentifier" : "MAS 5/28/2020 11:09",
"parseKeyword" : "MAS 5/28/2020 11:10",
"parseUnary" : "MAS 5/28/2020 11:10" } }
"parseUnary" : "MAS 5/28/2020 11:10",
"resolve:" : " 6/18/2020 10:56:13" } }

0 comments on commit d72f3cc

Please sign in to comment.