File: ClockSpec.hs

package info (click to toggle)
haskell-hspec-core 2.11.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 656 kB
  • sloc: haskell: 8,945; makefile: 5
file content (16 lines) | stat: -rw-r--r-- 408 bytes parent folder | download | duplicates (2)
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