-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
69 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module StegoSpec | ||
( spec | ||
) where | ||
import Test.Hspec | ||
import Stego.Common | ||
import Data.Time.Clock.POSIX (posixSecondsToUTCTime, utcTimeToPOSIXSeconds) | ||
|
||
spec :: Spec | ||
spec = | ||
describe "Tests the StegoCommon module functionality" $ | ||
-- setup test vars | ||
do | ||
it "tests the utcTimeToWord64 and word64ToUtcTime functions" $ do | ||
let t = utcTimeToWord64 $ posixSecondsToUTCTime 1.999999 | ||
t `shouldBe` 2 | ||
let t = utcTimeToWord64 $ posixSecondsToUTCTime 1.9999999 | ||
t `shouldBe` 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Name,Mean (ps),2*Stdev (ps),Allocated,Copied,Peak Memory | ||
All.EncodeStreamCmd.encodestream sample1,13331950550,987441022,92316505,6239,39845888 | ||
All.EncodeStreamCmd.encodestream sample2,157690056200,8586908444,1026804541,33874,39845888 | ||
All.EncodeStreamCmd.encodestream sample3,24051070500,1060021440,149445797,9319,39845888 | ||
All.DecodeStreamCmd.decodestream sample1,312094441,12317934,1628426,44,78643200 | ||
All.DecodeStreamCmd.decodestream sample2,3774645087,373300452,17228076,527,78643200 | ||
All.DecodeStreamCmd.decodestream sample3,486733567,14118744,2620858,73,78643200 | ||
All.EncodeStreamCmd.encodestream sample1,15040768593,894801872,93855144,6416,39845888 | ||
All.EncodeStreamCmd.encodestream sample2,158199655200,12267294320,1019767834,36963,39845888 | ||
All.EncodeStreamCmd.encodestream sample3,24438984900,1077451814,149445165,9364,39845888 | ||
All.DecodeStreamCmd.decodestream sample1,331582348,22610820,1614401,46,78643200 | ||
All.DecodeStreamCmd.decodestream sample2,3874140531,333099360,17228100,525,78643200 | ||
All.DecodeStreamCmd.decodestream sample3,495499743,25715734,2620860,74,78643200 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.