Commit e654f2901b33be0e2089994e87bee6e7c730e30e

Authored by Jürgen Knödlseder
1 parent 1a131cce

Adapt to OpenSolaris Infinity printing

Showing 1 changed file with 5 additions and 2 deletions
test/test_GVector.cpp
@@ -281,10 +281,13 @@ void TestGVector::arithmetics(void){ @@ -281,10 +281,13 @@ void TestGVector::arithmetics(void){
281 m_result[3]==-m_test[3]&& 281 m_result[3]==-m_test[3]&&
282 m_result[4]==-m_test[4],"GVector = -GVector"); 282 m_result[4]==-m_test[4],"GVector = -GVector");
283 283
284 - // Devide by zero 284 + // Divide by zero
285 m_result = m_test; 285 m_result = m_test;
286 m_result /= 0.0; 286 m_result /= 0.0;
287 - test_assert(m_result.print()=="(inf, inf, inf, inf, inf)"||m_result.print()=="(Inf, Inf, Inf, Inf, Inf)","Devide by zero",m_result.print()); 287 + test_assert(m_result.print() == "(inf, inf, inf, inf, inf)" ||
  288 + m_result.print() == "(Inf, Inf, Inf, Inf, Inf)" ||
  289 + m_result.print() == "(Infinity, Infinity, Infinity, Infinity, Infinity)" ,
  290 + "Divide by zero", m_result.print());
288 291
289 // GVector + GVector 292 // GVector + GVector
290 m_result = m_test + m_test; 293 m_result = m_test + m_test;