Skip to content

Commit

Permalink
This test also doesn't make sense when COIN_C_FINITE is undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
tkralphs committed Jan 10, 2022
1 parent 8e0e50f commit 57973b2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CoinUtils/test/CoinPackedVectorTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -685,7 +685,7 @@ CoinPackedVectorUnitTest()
int inx2[ne2] = { 7, 4, 2, 1 };
double el2[ne2] = { 7., 4., 2., 1. };

# ifdef COIN_C_FINITE
# ifdef COIN_C_FINITE
double one = 1.0 ;
double zero = 0.0 ;
double infty = one/zero ;
Expand All @@ -702,10 +702,12 @@ CoinPackedVectorUnitTest()
rV.setConstant(ne1,inx1,0) ;
r = v2 / v1;
assert(r.isEquivalent(rV)) ;
# ifdef COIN_C_FINITE
rV.setConstant(ne1,inx1,infty) ;
r = v1 / v2;
assert(r.isEquivalent(rV)) ;

# endif

r.isEquivalent(rV) ;

v2.setVector(ne2,inx2,el2);
Expand Down

0 comments on commit 57973b2

Please sign in to comment.