From d8e36e3cf1051cd4422a47efd06edbba353ecf36 Mon Sep 17 00:00:00 2001 From: Ruben Dashyan Date: Tue, 4 Feb 2020 14:45:55 +0100 Subject: [PATCH] [poincare/test/simplification] Fix units' tests --- poincare/test/simplification.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/poincare/test/simplification.cpp b/poincare/test/simplification.cpp index c445bfdd2..80eb16db1 100644 --- a/poincare/test/simplification.cpp +++ b/poincare/test/simplification.cpp @@ -238,10 +238,10 @@ QUIZ_CASE(poincare_simplification_units) { * a unit is the standard unit with the standard prefix in a dimension. * Thus the latter case is not tested. * - At present, some units will not appear as simplification output: - * t, Hz, S, L. These exceptions are tested below. */ + * t, Hz, S, ha, L. These exceptions are tested below. */ for (const Unit::Dimension * dim = Unit::DimensionTable; dim < Unit::DimensionTableUpperBound; dim++) { for (const Unit::Representative * rep = dim->stdRepresentative(); rep < dim->representativesUpperBound(); rep++) { - if (strcmp(rep->rootSymbol(), "t") == 0 || strcmp(rep->rootSymbol(), "Hz") == 0 || strcmp(rep->rootSymbol(), "S") == 0 || strcmp(rep->rootSymbol(), "L") == 0) { + if (strcmp(rep->rootSymbol(), "t") == 0 || strcmp(rep->rootSymbol(), "Hz") == 0 || strcmp(rep->rootSymbol(), "S") == 0 || strcmp(rep->rootSymbol(), "ha") == 0 || strcmp(rep->rootSymbol(), "L") == 0) { continue; } static constexpr size_t bufferSize = 12;