-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from Talm28/master
Add IFERROR function + tests
- Loading branch information
Showing
5 changed files
with
57 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
from .. import testing | ||
|
||
from xlcalculator.xlfunctions import xlerrors | ||
|
||
|
||
class SqrtTest(testing.FunctionalTestCase): | ||
filename = "IFERROR.xlsx" | ||
|
||
def test_evaluation_C1(self): | ||
self.assertEqual( | ||
self.evaluator.get_cell_value('Sheet1!C1!'), | ||
self.evaluator.evaluate('Sheet1!C1') | ||
) | ||
|
||
def test_evaluation_C2(self): | ||
self.assertEqual( | ||
self.evaluator.get_cell_value('Sheet1!C2!'), | ||
self.evaluator.evaluate('Sheet1!C2') | ||
) | ||
|
||
def test_evaluation_C3(self): | ||
self.assertEqual( | ||
self.evaluator.get_cell_value('Sheet1!C3!'), | ||
self.evaluator.evaluate('Sheet1!C3') | ||
) | ||
|
||
def test_evaluation_C4(self): | ||
self.assertEqual( | ||
self.evaluator.get_cell_value('Sheet1!C4!'), | ||
self.evaluator.evaluate('Sheet1!C4') | ||
) | ||
|
||
def test_evaluation_C5(self): | ||
self.assertEqual( | ||
self.evaluator.get_cell_value('Sheet1!C5!'), | ||
self.evaluator.evaluate('Sheet1!C5') | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters