Fix matrix operator bug on - and /.2

This commit is contained in:
Krad
2023-04-21 15:32:09 +08:00
parent b323ef5c0f
commit df36096f72
3 changed files with 10 additions and 10 deletions

View File

@@ -188,8 +188,8 @@ TEST_F(FunctionTester, matrixOpertaor) {
EXPECT_EQ(C.getData()[2],2);
C = A*B/2.0;
EXPECT_EQ(C.getData()[2],2);
C = A*B*B/2.0;
EXPECT_EQ(C.getData()[2],4);
C = (A*8.0/B) * (B+1.0)-2.0+8;
EXPECT_EQ(C.getData()[2],30);
}
}