packages feed

genvalidity-hspec-binary-1.0.0.0: test/Test/Validity/BinarySpec.hs

{-# LANGUAGE TypeApplications #-}

module Test.Validity.BinarySpec where

import Data.GenValidity
import Test.Hspec
import Test.Validity.Binary

spec :: Spec
spec = do
  binarySpecOnGen (genListOf $ pure 'a') "sequence of 'a's" (const [])
  -- binarySpec @Double DOES NOT HOLD
  binarySpec @Rational
  binarySpec @Int
  binarySpecOnArbitrary @Int