Question: What does the following test do ? @Test void multipyWithScalar _ mysteryTest ( ) { Matrix m = new Matrix ( 2 , 2 )

What does the following test do?
@Test
void multipyWithScalar_mysteryTest(){
Matrix m= new Matrix (2,2);
assertFalse(m. equals (new Matrix (2,1));
}
Tests that equals() method returns null if it is passed null
Tests that equals() method returns true if it is passed the same matrix as m
Tests that equals() method returns false if it is passed a matrix of a different size than m
 What does the following test do? @Test void multipyWithScalar_mysteryTest(){ Matrix m=

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!