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

Commit 5a217ea

Browse files
author
James W. Barnett
committed
add test for read_next()
1 parent 9de2f24 commit 5a217ea

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎tests/Trajectory.cpp‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
int main()
88
{
99
Trajectory t1("tests/test.xtc");
10-
cout << "test" << endl;
1110
t1.read();
12-
cout << "test" << endl;
1311

1412
assert(test_equal(t1.GetNAtoms(), 4050));
1513
assert(test_equal(t1.GetNFrames(), 1001));
@@ -74,7 +72,7 @@ cout << "test" << endl;
7472

7573
Index index("tests/test.ndx");
7674
t1 = Trajectory("tests/test.xtc",index);
77-
t1.read();
75+
t1.read_next(4050);
7876
assert(test_equal(t1.GetNAtoms("System"), 4050));
7977
assert(test_equal(t1.GetNAtoms("C"), 10));
8078
assert(test_equal(t1.GetNAtoms("SOL"), 4000));

0 commit comments

Comments
 (0)