Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Commit

Permalink
add two direfct coordinate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
zachcp committed Oct 23, 2024
1 parent 036d223 commit 555739d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/test_pse_parsing.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
use itertools::assert_equal;
use pseutils::pymolparsing::colors::Color;
use pseutils::pymolparsing::parsing::{CoordSet, CustomValue, SettingsEnum};
use pseutils::pymolparsing::representation::RepBitmask;
Expand Down Expand Up @@ -45,6 +46,10 @@ fn test_pdb_00() {
let coords_01 = coord_sets[0].get_coords_as_vec();
assert_eq!(coords_01.len(), 1519);

let coords_01_atom_01 = coords_01;
assert_equal(coords_01_atom_01[0], [50.873, 32.978, 2.387]);
assert_equal(coords_01_atom_01[1518], [52.372, 15.397, -15.323]);

let atom01 = mols[0].get_atom(0);
assert!(atom01.x() == 50.87300109863281);
assert!(atom01.y() == 32.97800064086914);
Expand Down

0 comments on commit 555739d

Please sign in to comment.