Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Matrix.toArray #203

Merged
merged 2 commits into from
Mar 3, 2022
Merged

Conversation

karczewskiPiotr
Copy link
Contributor

Issue

The Matrix.toArray function does not properly flatten non-square matrices to an array. This results in incorrect range returned by the default getCellRangeValue, which in turn results in the formulas getting incorrect arguments.


This PR adds the tests for the non-square matrices flattening and fixes the issue of looping the matrix columns incorrect amount of times due to the number of rows not matching the number of columns in non-square matrices.

@iddan
Copy link
Owner

iddan commented Mar 3, 2022

This is great! I haven't got to review it until now. Thank you so much

@coveralls
Copy link

Pull Request Test Coverage Report for Build 1814596797

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 79.615%

Totals Coverage Status
Change from base Build 1800459910: 0.0%
Covered Lines: 729
Relevant Lines: 861

💛 - Coveralls

@iddan iddan merged commit c26806d into iddan:master Mar 3, 2022
@iddan
Copy link
Owner

iddan commented Mar 3, 2022

Published in 0.6.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants