[TR-363] incorrect assertion in RandomDataInputMemory.java Created: 18/Sep/14  Updated: 01/Dec/15  Resolved: 18/Sep/14

Status: Resolved
Project: Terrier Core
Component/s: None
Affects Version/s: 4.0
Fix Version/s: 4.1

Type: Bug Priority: Trivial
Reporter: Craig Macdonald Assignee: Craig Macdonald
Resolution: Fixed  
Labels: None

Issue Links:
Related
relates to TR-354 Unit tests should pass with assertion... Resolved

 Description   
I don't follow the logic of this assertion


public final void seek(long _pos)
{
            assert(pos < 0);




 Comments   
Comment by Craig Macdonald [ 18/Sep/14 ]

Given that the following line is:
this.pos = _pos;
what would actually make sense is:
assert(pos >= 0);

Comment by Craig Macdonald [ 18/Sep/14 ]

All unit test pass; committed r4007.

Generated at Sat Dec 16 18:28:04 GMT 2017 using JIRA 7.1.1#71004-sha1:d6b2c0d9b7051e9fb5e4eb8ce177ca56d91d7bd8.