Skip to content

Commit

Permalink
Test round-tripping of doubles through the stack
Browse files Browse the repository at this point in the history
  • Loading branch information
tarleb committed Mar 22, 2017
1 parent a74865e commit 51b8d21
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/HsLuaSpec.hs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ spec = do
describe "Random StackValues" $ do
it "can push/pop booleans" $ property prop_bool
it "can push/pop ints" $ property prop_int
it "can push/pop doubles" $ property prop_double
it "can push/pop bytestrings" $ property prop_bytestring
it "can push/pop lists of booleans" $ property prop_lists_bool
it "can push/pop lists of ints" $ property prop_lists_int
Expand Down Expand Up @@ -99,6 +100,9 @@ prop_bool = testStackValueInstance
-- Ints
prop_int :: Int -> Property
prop_int = testStackValueInstance
-- Doubles
prop_double :: Double -> Property
prop_double = testStackValueInstance
-- Bytestrings
prop_bytestring :: ByteString -> Property
prop_bytestring = testStackValueInstance
Expand Down

0 comments on commit 51b8d21

Please sign in to comment.