From e654f2901b33be0e2089994e87bee6e7c730e30e Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Fri, 7 Oct 2016 17:43:34 +0200 Subject: [PATCH] Adapt to OpenSolaris Infinity printing --- test/test_GVector.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/test_GVector.cpp b/test/test_GVector.cpp index 4ea3dcf..76c7193 100644 --- a/test/test_GVector.cpp +++ b/test/test_GVector.cpp @@ -281,10 +281,13 @@ void TestGVector::arithmetics(void){ m_result[3]==-m_test[3]&& m_result[4]==-m_test[4],"GVector = -GVector"); - // Devide by zero + // Divide by zero m_result = m_test; m_result /= 0.0; - test_assert(m_result.print()=="(inf, inf, inf, inf, inf)"||m_result.print()=="(Inf, Inf, Inf, Inf, Inf)","Devide by zero",m_result.print()); + test_assert(m_result.print() == "(inf, inf, inf, inf, inf)" || + m_result.print() == "(Inf, Inf, Inf, Inf, Inf)" || + m_result.print() == "(Infinity, Infinity, Infinity, Infinity, Infinity)" , + "Divide by zero", m_result.print()); // GVector + GVector m_result = m_test + m_test; -- libgit2 0.21.4