You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should verify "all" possible incomes and outcomes:
Check the params for 0 and any possible random floats -2^128 - 2^128
Verify if there is a return value of type float. If not fail the test
->
Function throws an error when second parameter is a 0. It has to be fixed by using different module like ffi "NativeBasics "safe_div"
Example 2
myMap: (Bool->Int) ->ListBool->ListInt
Generate a function verifying that it took a bool and returning a random int
Generate a list of random length with random bools inside
Check if function always returns a list of integers. If not throw
Etc
The text was updated successfully, but these errors were encountered:
wende
changed the title
Implement pureness tests for FFI based on property testing
Implement purity tests for FFI based on property testing
Feb 12, 2018
Along with typetests which verify the spec of a function we want a property test that checks whether used FFI call is pure and total.
For example:
Should verify "all" possible incomes and outcomes:
-2^128
-2^128
->
Function throws an error when second parameter is a 0. It has to be fixed by using different module like
ffi "NativeBasics "safe_div"
Example 2
Etc
The text was updated successfully, but these errors were encountered: