Sayandip Halder

Results 23 comments of Sayandip Halder

Can you share your code?

> My comment on Gitter was more about moving the existing test suite. I intended this to be a starting point since this is the first time I'm using Hypothesis....

Do we intend to replace all instances of `pytest.mark.parametrize` with `hypothesis.given`? There are some inherent problems regarding the randomized nature of Hypothesis. Consider this example https://github.com/pydata/sparse/blob/146f1129835547f2efb6ba8a55eb4eca320cbcdd/sparse/tests/test_dok.py#L59-L75 The hypothesis strategy I...

The error message is quite large. The brief one is ``` ============================================================== short test summary info ============================================================== FAILED sparse/tests/test_dok.py::test_construct - IndexError: Index is not smaller than dimension 1 >= 1...

Getting a new issue I replaced this https://github.com/pydata/sparse/blob/146f1129835547f2efb6ba8a55eb4eca320cbcdd/sparse/tests/test_dok.py#L103-L110 with the following ``` @given(data()) def test_getitem(data): n = st.integers(min_value=1, max_value=5) shape = st.tuples(n, n) density = st.floats(min_value=0, max_value=1) print(type(density)) indices =...

A lot of tests are failing now regardless of hypothesis being there in `test.txt`. Most are Flaky, meaning they are exceeding the deadline of 200.00ms on the first run.

**Note**: I have added the utility file @H4R5H1T-007

Only a handful left now. I am hoping to finish this before the official coding period starts.

I will squash the commits if the tests pass. The commit message should be something meaningful instead of how it is now.

I'm getting these two failures for `test_io.py` ```python ===================================================================== FAILURES ===================================================================== _____________________________________________________________ test_save_load_npz_file ______________________________________________________________ @given( > compression=st.sampled_from([True, False]), format=st.sampled_from(["coo", "gcxs"]) ) def test_save_load_npz_file(compression, format): sparse/tests/test_io.py:13: _ _ _ _ _...