@@ -231,7 +231,7 @@ TEST_F(TestPsi, size)
231231TEST_F (TestPsi, range)
232232{
233233 psi::Range range1 (1 );// k_first = 1;index_1 = 0;range_1 = 1;range_2 = 1;
234- psi::Range range2 (0 ,1 ,0 ,0 );
234+ psi::Range range2 (false ,1 ,0 ,0 );
235235 EXPECT_EQ (range1.range_1 , 1 );
236236 EXPECT_EQ (range1.range_2 , 1 );
237237 EXPECT_EQ (range2.k_first , 0 );
@@ -316,12 +316,12 @@ TEST_F(TestPsi, band_first)
316316 EXPECT_EQ ((*psi_band_32)(2 ), 42 );
317317
318318 // range
319- psi::Range b2_k11 (0 , 2 , 1 , 1 );
320- psi::Range b13 (0 , -1 , 1 , 3 );
321- psi::Range illegal_kfirst (1 , 2 , 1 , 1 );
322- psi::Range illegal_index1 (0 , 4 , 2 , 1 );
323- psi::Range illegal_range1 (0 , -1 , 3 , 1 );
324- psi::Range illegal_range2 (0 , 2 , 1 , 3 );
319+ psi::Range b2_k11 (false , 2 , 1 , 1 );
320+ psi::Range b13 (false , -1 , 1 , 3 );
321+ psi::Range illegal_kfirst (true , 2 , 1 , 1 );
322+ psi::Range illegal_index1 (false , 4 , 2 , 1 );
323+ psi::Range illegal_range1 (false , -1 , 3 , 1 );
324+ psi::Range illegal_range2 (false , 2 , 1 , 3 );
325325 EXPECT_EQ (std::get<0 >(psi_band_c64->to_range (b2_k11))[1 ].real (), 51 );
326326 EXPECT_EQ (std::get<1 >(psi_band_c64->to_range (b2_k11)), 1 );
327327 EXPECT_EQ (std::get<0 >(psi_band_64->to_range (b13))[50 ], 70 );
@@ -342,7 +342,7 @@ TEST_F(TestPsi, band_first)
342342 EXPECT_EQ (psi_band_32_b.get_nk (), ink);
343343 EXPECT_EQ (psi_band_32_b.get_nbands (), inbands);
344344 EXPECT_EQ (psi_band_32_b.get_nbasis (), inbasis);
345- for (int ik = 0 ;ik < ink;++ik)
345+ for (int ik = 0 ;ik < ink;++ik) {
346346 for (int ib = 0 ;ib < inbands;++ib)
347347 {
348348 psi_band_32->fix_kb (ik, ib);
@@ -352,6 +352,7 @@ TEST_F(TestPsi, band_first)
352352 EXPECT_EQ (psi_band_32_k.get_psi_bias (), (ik * inbands + ib) * inbasis);
353353 EXPECT_EQ (psi_band_32_b.get_psi_bias (), (ib * ink + ik) * inbasis);
354354 }
355+ }
355356
356357 delete psi_band_c64;
357358 delete psi_band_64;
0 commit comments