File: ClockSpec.hs

package info (click to toggle)
haskell-hspec-core 2.11.16-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 700 kB
  • sloc: haskell: 9,452; makefile: 3
file content (16 lines) | stat: -rw-r--r-- 408 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
module Test.Hspec.Core.ClockSpec (spec) where

import           Prelude ()
import           Helper

import           Test.Hspec.Core.Clock

spec :: Spec
spec = do
  describe "toMilliseconds" $ do
    it "converts Seconds to milliseconds" $ do
      toMilliseconds 0.1 `shouldBe` 100

  describe "toMicroseconds" $ do
    it "converts Seconds to microseconds" $ do
      toMicroseconds 2.5 `shouldBe` 2500000