Skip to content

Commit

Permalink
Simplify use of new Dendrology API
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Dec 7, 2023
1 parent aa4580b commit 703276d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/report.scala
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,8 @@ class TestReport(using Environment):
else e"${surface.juncture.shortCode}"

def render(junctures: List[Surface]): LazyList[(Surface, Output)] =
TreeDiagram[Surface](_.children, describe(_))(junctures).nodeLines
val diagram = TreeDiagram[Surface](_.children)(junctures)
diagram.nodes.zip(diagram.render(describe))

import colors.*

Expand Down

0 comments on commit 703276d

Please sign in to comment.