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

Commit

Permalink
add test for read_next()
Browse files Browse the repository at this point in the history
  • Loading branch information
James W. Barnett committed Jul 25, 2016
1 parent 9de2f24 commit 5a217ea
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/Trajectory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,7 @@
int main()
{
Trajectory t1("tests/test.xtc");
cout << "test" << endl;
t1.read();
cout << "test" << endl;

assert(test_equal(t1.GetNAtoms(), 4050));
assert(test_equal(t1.GetNFrames(), 1001));
Expand Down Expand Up @@ -74,7 +72,7 @@ cout << "test" << endl;

Index index("tests/test.ndx");
t1 = Trajectory("tests/test.xtc",index);
t1.read();
t1.read_next(4050);
assert(test_equal(t1.GetNAtoms("System"), 4050));
assert(test_equal(t1.GetNAtoms("C"), 10));
assert(test_equal(t1.GetNAtoms("SOL"), 4000));
Expand Down

0 comments on commit 5a217ea

Please sign in to comment.