Skip to content

Commit

Permalink
fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
travgm committed Nov 14, 2024
1 parent e0d6c61 commit f7b1256
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/PrettyPrinterSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ spec = do
it "shows alarm when reached" $ do
let state = makeClockState False Nothing (Just $ makeValidTime 500)
Pretty.formatTime (AlarmReached (DecimalTime 500)) (Right state)
`shouldBe` "Decimal time: 500 ALARM!"
`shouldBe` "Decimal time: 500 ALARM!\BEL"

it "always starts with 'Decimal time: '" $ property $ \state ->
T.isPrefixOf "Decimal time: " (Pretty.formatTime Normal $ Right state)

0 comments on commit f7b1256

Please sign in to comment.