Skip to content

Commit

Permalink
Rename colors to webColors
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Jun 6, 2024
1 parent 693d82c commit 085bf82
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/comparison.scala
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ object Semblance:
Row(line(t""), e"${rgb"#667799"}($v)", e"${rgb"#667799"}($v)", e"")

case Different(left, right, difference) =>
Row(line(t""), e"${colors.YellowGreen}($left)", e"${colors.Crimson}($right)",
Row(line(t""), e"${webColors.YellowGreen}($left)", e"${webColors.Crimson}($right)",
e"${rgb"#40bbcb"}(${difference.or(t"")})")

case Breakdown(cmp, left, right) =>
Expand All @@ -77,10 +77,10 @@ object Semblance:
case Different(left, right, difference) =>
val whitespace = if right.has('\n') then e"\n" else e" "
val whitespace2 = if left.has('\n') then e"\n" else e" "
e"The result$whitespace${colors.Crimson}($right)${whitespace}did not equal$whitespace2${colors.YellowGreen}($left)"
e"The result$whitespace${webColors.Crimson}($right)${whitespace}did not equal$whitespace2${webColors.YellowGreen}($left)"

case Identical(value) =>
e"The value ${colors.Gray}($value) was expected"
e"The value ${webColors.Gray}($value) was expected"

object Similarity:
given [ValueType]: Similarity[ValueType] = (a, b) => a == b
Expand Down

0 comments on commit 085bf82

Please # to comment.