Skip to content
Snippets Groups Projects
Commit 8a2ccf96 authored by Jan Kuchař's avatar Jan Kuchař
Browse files

ICursorTest: added test for fetchOneAt(<negative>)

parent 7fcfa6d4
No related branches found
No related tags found
No related merge requests found
......@@ -218,6 +218,14 @@ abstract class ICursorTest extends BaseTest
Assert::same(5, $data["n"]);
}
public function test_givenInitialPosition_whenFetchMinus2_thenGetSecondFromRight()
{
$this->uut->moveTo(234); // wherever
$data = $this->uut->fetchOneAt(-2);
Assert::same(999, $data["n"]);
}
// fetchOneBy()
public function test_givenInitialPosition_whenFetchCurrent_thenGetNull()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment