Hypothesis equivalent for D?

James Lu jamtlu at gmail.com
Sat Apr 10 15:47:19 UTC 2021


Hypothesis is a Python library for generating tests. 
https://hypothesis.readthedocs.io/en/latest/quickstart.html

from hypothesis import example, given, strategies as st


@given(st.text())
@example("")
def test_decode_inverts_encode(s):
     assert decode(encode(s)) == s

What are the equivalent D libraries?


More information about the Digitalmars-d mailing list