Skip to content

Commit

Permalink
added check to returns first bar checking that there's a date
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasKauer committed Jun 20, 2015
1 parent 1f9a6fa commit fe516d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testcases/returns_analyzer_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,3 +451,5 @@ def testFirstBar(self):
strat.run()
self.assertEqual(stratAnalyzer.getReturns()[0], 0)
self.assertEqual(stratAnalyzer.getReturns()[1], (32.00 - 25.25) / 1000)
self.assertIsNotNone(stratAnalyzer.getReturns().getDateTimes()[0])
self.assertIsNotNone(stratAnalyzer.getCumulativeReturns().getDateTimes()[0])

0 comments on commit fe516d9

Please sign in to comment.