Skip to content

Implementation of Matrix problem#1

Open
abhi4890 wants to merge 9 commits intomasterfrom
ak-MAT-f1
Open

Implementation of Matrix problem#1
abhi4890 wants to merge 9 commits intomasterfrom
ak-MAT-f1

Conversation

@abhi4890
Copy link
Owner

No description provided.

@abhi4890 abhi4890 self-assigned this Jan 13, 2019
it "returns [1, 2] as the first row of the matrix \n1 2\n10 20" do
matrix = Matrix.new("1 2\n10 20")
expect(matrix.extract_row(0)).to eq([1, 2])
expect(matrix.extract_row(0)).to eq([1 , 2])
Copy link

@piyush0609 piyush0609 Jan 13, 2019

Choose a reason for hiding this comment

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

Please format it properly

end

it "returns [] as the second column of the non-regular matrix\n10 19 15\n11 13 16" do
it "returns [19, 13] as the second column of the non-regular matrix\n10 19 15\n11 13 16" do
Copy link

@piyush0609 piyush0609 Jan 13, 2019

Choose a reason for hiding this comment

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

Test case description can be improved. Avoid including details about test data in description.

context "when extracting a column of a matrix" do
it "returns [1 , 10] as the first column of the matrix \n1 2\n10 20" do
matrix = Matrix.new("1 2\n10 20")
expect(matrix.extract_column(0)).to eq([1 , 10])
Copy link
Collaborator

Choose a reason for hiding this comment

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

format should be consistent

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.

3 participants