Skip to content

Commit

Permalink
solving #33 (#37)
Browse files Browse the repository at this point in the history
Co-authored-by: Sami Boumaiza <[email protected]>
  • Loading branch information
sami6mz and Sami Boumaiza authored Jul 9, 2023
1 parent 93dc87c commit d7272e2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tests/simulate_data/test_get_simulated_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,15 @@ def test_dimension_y(y, dict_param):

def test_m_is_binary(m, dict_param):
if dict_param["type_m"] == "binary":
assert sum(m.ravel() == 1) + sum(m.ravel() == 0) == dict_param["n"]
assert (
sum(m.ravel() == 1) + sum(m.ravel() == 0)
== dict_param["n"] * dict_param["dim_m"]
)
else:
assert sum(m.ravel() == 1) + sum(m.ravel() == 0) < dict_param["n"]
assert (
sum(m.ravel() == 1) + sum(m.ravel() == 0)
< dict_param["n"] * dict_param["dim_m"]
)


def test_total_is_direct_plus_indirect(effects):
Expand Down

0 comments on commit d7272e2

Please sign in to comment.