Skip to content

Commit

Permalink
Check of implicit Dimension presence was added to time-related tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
buzden committed Nov 28, 2018
1 parent b504f4c commit 84edf68
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions shared/src/test/scala/squants/time/FrequencySpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,8 @@ class FrequencySpec extends FlatSpec with Matchers {
d.terahertz should be(Terahertz(d))
d.rpm should be(RevolutionsPerMinute(d))
}

it should "provide implicit instance for Dimension" {
implicitly[Dimension[Frequency]] should be(Frequency)
}
}
4 changes: 4 additions & 0 deletions shared/src/test/scala/squants/time/TimeSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -222,4 +222,8 @@ class TimeSpec extends FlatSpec with Matchers {

doSomethingWithDuration(Seconds(10))
}

it should "provide implicit instance for Dimension" {
implicitly[Dimension[Time]] should be(Time)
}
}

0 comments on commit 84edf68

Please sign in to comment.