Skip to content

Conversation

@ColmBhandal
Copy link
Owner

No description provided.

… methods for 2D

Array extension and 2D array extension methods & associated tests are in separate classes now
There are 2 new untested write operations available as 2D array extension methods
Some other minor tidying up done e.g. moving the Enum to its own class
Negative and positive offsets are now allowed
The For loop will only iterate over allowable values
Copy link
Collaborator

@hctrdev hctrdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See comments

…rray

Before, they were only checking that the column written to was correct
Now, they ensure the entire resultant array is as expected
This gives the extra protection of ensuring writes aren't happening to the wrong row/column
There's no point in testing all these cases again - they're already tested in 0-based case
Also fixed nullable annotations in existing code to get rid of that warning
Added this as part of a new test class which can also be used for regular tests later
@hctrdev hctrdev merged commit 07d2af4 into master Jun 9, 2020
@hctrdev hctrdev deleted the feature/write-oneD-to-twoD-array branch June 9, 2020 14:43
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.

Allow writing of One Dimensional Arrays to Two Dimensional Arrays' Rows/Columns Allow creating one-based array from dimensions

3 participants