package coursier.util

import utest._

object TreeTests extends TestSuite {
  case class Node(label: String, children: Node*)

  val roots = Array(
    Node("p1",
      Node("c1"),
      Node("c2")),
    Node("p2",
      Node("c3"),
      Node("c4"))
  )

  val tests = TestSuite {
    'apply {
      val str = Tree[Node](roots)(_.children, _.label)
      assert(str == """├─ p1
        #│  ├─ c1
        #│  └─ c2
        #└─ p2
        #   ├─ c3
        #   └─ c4""".stripMargin('#'))
    }
  }
}

package coursier.util

import utest._

object TreeTests extends TestSuite {
  case class Node(label: String, children: Node*)

  val roots = Array(
    Node("p1",
      Node("c1"),
      Node("c2")),
    Node("p2",
      Node("c3"),
      Node("c4"))
  )

  val tests = TestSuite {
    'apply {
      val str = Tree[Node](roots)(_.children, _.label)
      assert(str == """├─ p1
        ││  ├─ c1
        ││  └─ c2
        │└─ p2
        │   ├─ c3
        │   └─ c4""".stripMargin)
    }
  }
}

--- 
+++ 
@@ -18,11 +18,11 @@
     'apply {
       val str = Tree[Node](roots)(_.children, _.label)
       assert(str == """├─ p1
-        ││  ├─ c1
-        ││  └─ c2
-        │└─ p2
-        │   ├─ c3
-        │   └─ c4""".stripMargin)
+        #│  ├─ c1
+        #│  └─ c2
+        #└─ p2
+        #   ├─ c3
+        #   └─ c4""".stripMargin('#'))
     }
   }
 }
Tweak margin character in test
