We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 289f798 commit 5fe7471Copy full SHA for 5fe7471
source/module_base/test/matrix_test.cpp
100644
100755
@@ -18,6 +18,7 @@
18
* - operator "*=", "+=", "-="
19
* - function trace_on
20
* - function zero_out
21
+ * - function fill_out
22
* - function max/min/absmax
23
* - function norm
24
* - function print (not called in abacus, no need to test)
@@ -337,3 +338,16 @@ TEST_F(matrixTest,Alloc)
337
338
output = testing::internal::GetCapturedStdout();
339
EXPECT_THAT(output,testing::HasSubstr("Allocation error for Matrix"));
340
}
341
+
342
+TEST_F(matrixTest,Fillout)
343
+{
344
+ double k=2.4;
345
+ m33a.fill_out(k);
346
+ for (int i=0;i<m33a.nr;++i)
347
+ {
348
+ for (int j=0;j<m33a.nc;++j)
349
350
+ EXPECT_DOUBLE_EQ(m33a(i,j),k);
351
+ }
352
353
+}
0 commit comments