Repository navigation
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #711 +/- ##
========================================
Coverage 92.27% 92.27%
========================================
Files 166 166
Lines 39400 39400
Branches 5364 5364
========================================
Hits 36358 36358
Misses 3003 3003
Partials 39 39
|
wojciechczerniak
approved these changes
Jun 14, 2021
Comment on lines
+7
to
+15
| [1, 2, 5, 10, 20], | ||
| ['=MIN(A1:E1)', '=MAX(A1:E1)', '=SUM(A1:E1)', '=SUMSQ(A1:E1)', '=AVERAGE(A1:E1)'], | ||
| ['=MIN(A1:E1)', '=MAX(A1:E1)', '=SUM(A1:E1)', '=SUMSQ(A1:E1)', '=AVERAGE(A1:E1)'], | ||
| ]) | ||
| expect(engine.getCellValue(adr('A3'))).toEqual(1) | ||
| expect(engine.getCellValue(adr('B3'))).toEqual(20) | ||
| expect(engine.getCellValue(adr('C3'))).toEqual(38) | ||
| expect(engine.getCellValue(adr('D3'))).toEqual(530) | ||
| expect(engine.getCellValue(adr('E3'))).toEqual(7.6) |
Contributor
There was a problem hiding this comment.
Can similar problem occur when functions are the same but ranges differ? Looks like one row is unused, so I have a suggestion:
Suggested change
| [1, 2, 5, 10, 20], | |
| ['=MIN(A1:E1)', '=MAX(A1:E1)', '=SUM(A1:E1)', '=SUMSQ(A1:E1)', '=AVERAGE(A1:E1)'], | |
| ['=MIN(A1:E1)', '=MAX(A1:E1)', '=SUM(A1:E1)', '=SUMSQ(A1:E1)', '=AVERAGE(A1:E1)'], | |
| ]) | |
| expect(engine.getCellValue(adr('A3'))).toEqual(1) | |
| expect(engine.getCellValue(adr('B3'))).toEqual(20) | |
| expect(engine.getCellValue(adr('C3'))).toEqual(38) | |
| expect(engine.getCellValue(adr('D3'))).toEqual(530) | |
| expect(engine.getCellValue(adr('E3'))).toEqual(7.6) | |
| [1, 2, 5, 10, 20], | |
| ['=MIN(B1:E1)', '=MAX(A1:D1)', '=SUM(B1:E1)', '=SUMSQ(A1:D1)', '=AVERAGE(A1:D1)'], | |
| ['=MIN(A1:E1)', '=MAX(A1:E1)', '=SUM(A1:E1)', '=SUMSQ(A1:E1)', '=AVERAGE(A1:E1)'], | |
| ]) | |
| expect(engine.getCellValue(adr('A2'))).toEqual(2) | |
| expect(engine.getCellValue(adr('B2'))).toEqual(10) | |
| expect(engine.getCellValue(adr('C2'))).toEqual(37) | |
| expect(engine.getCellValue(adr('D2'))).toEqual( ?? ) | |
| expect(engine.getCellValue(adr('E2'))).toEqual( ?? ) | |
| expect(engine.getCellValue(adr('A3'))).toEqual(1) | |
| expect(engine.getCellValue(adr('B3'))).toEqual(20) | |
| expect(engine.getCellValue(adr('C3'))).toEqual(38) | |
| expect(engine.getCellValue(adr('D3'))).toEqual(530) | |
| expect(engine.getCellValue(adr('E3'))).toEqual(7.6) |
Contributor
Author
There was a problem hiding this comment.
The reason why I copied the row is to have it so each function is called once on exactly one particular range, before we try to call them second time, (so we check possible cache pollution for every combination).
Contributor
Author
There was a problem hiding this comment.
Can similar problem occur when functions are the same but ranges differ? Looks like one row is unused, so I have a suggestion:
If it could, it would also occur with identical ranges.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Context
MIN and MAX were using the same function cache.
How has this been tested?
Types of changes
Related issue(s):
Checklist: