-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathProperties.purs
More file actions
26 lines (23 loc) · 836 Bytes
/
Properties.purs
File metadata and controls
26 lines (23 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
module Test.Properties where
import Effect (Effect)
import Effect.Console (log)
import Effect.Ref (new, read) as Ref
import Prelude (Unit, bind, discard, ($), (<>), (*), show)
import Test.Properties.DataView (dataViewTests)
import Test.Properties.TypedArray (typedArrayTests)
import Test.Properties.Typed.Laws (typedArrayLaws)
propertiesTests :: Effect Unit
propertiesTests = do
do
count <- Ref.new 0
log " - TypedArray Tests:"
typedArrayTests count
typedArrayLaws count
c <- Ref.read count
log $ " - Verified " <> show c <> " properties, generating " <> show (c * 9 * 100) <> " test cases."
do
count <- Ref.new 0
log " - DataView Tests:"
dataViewTests count
c <- Ref.read count
log $ " - Verified " <> show c <> " properties, generating " <> show (c * 16 * 100) <> " test cases."