Skip to content

Implementation of Matrix problem#1

Open
abhi4890 wants to merge 9 commits into
masterfrom
ak-MAT-f1
Open

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

Conversation

@abhi4890

Copy link
Copy Markdown
Owner

No description provided.

@abhi4890 abhi4890 self-assigned this Jan 13, 2019
Comment thread spec/matrix_spec.rb Outdated
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])

@piyush0609 piyush0609 Jan 13, 2019

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please format it properly

Comment thread spec/matrix_spec.rb Outdated
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

@piyush0609 piyush0609 Jan 13, 2019

Copy link
Copy Markdown

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.

Comment thread spec/matrix_spec.rb Outdated
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
Copy Markdown
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