Skip to content

Commit 2e33a88

Browse files
committed
Test polishing
1 parent 1aa4b56 commit 2e33a88

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

tests/run/builder.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Table(Row(Cell(A1), Cell(B1)), Row(Cell(A2), Cell(B2)))
1+
Table(Row(Cell(top left), Cell(top right)), Row(Cell(botttom left), Cell(bottom right)))

tests/run/builder.scala

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@ class Row {
1212
override def toString = cells.mkString("Row(", ", ", ")")
1313
}
1414

15-
class Cell(elem: String) {
16-
override def toString = s"Cell($elem)"
17-
}
15+
case class Cell(elem: String)
1816

1917
object Test {
2018

@@ -36,12 +34,12 @@ object Test {
3634
val data =
3735
table {
3836
row {
39-
cell("A1")
40-
cell("B1")
37+
cell("top left")
38+
cell("top right")
4139
}
4240
row {
43-
cell("A2")
44-
cell("B2")
41+
cell("botttom left")
42+
cell("bottom right")
4543
}
4644
}
4745

0 commit comments

Comments
 (0)