Skip to content

Commit 535fad9

Browse files
authored
Add assert to new test in test_af3.py (#28)
* Add assert to new test in `test_af3.py` * Update test_af3.py
1 parent 047cdd9 commit 535fad9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/test_af3.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ def test_atom_ref_pos_to_atompair_inputs():
3535
atom_ref_pos = torch.randn(16, 3)
3636
atom_ref_space_uid = torch.ones(16).long()
3737

38-
atom_ref_pos_to_atompair_inputs(atom_ref_pos, atom_ref_space_uid)
38+
atompair_inputs = atom_ref_pos_to_atompair_inputs(atom_ref_pos, atom_ref_space_uid)
39+
40+
assert atompair_inputs.shape == (16, 16, 5)
3941

4042
def test_mean_pool_with_lens():
4143
seq = torch.tensor([[[1.], [1.], [1.], [2.], [2.], [2.], [2.], [1.], [1.]]])

0 commit comments

Comments
 (0)