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?