Lines Matching refs:measures
456 MaybeStackVector<Measure> measures = converter.convert(1.9999, nullptr, status); in testComplexUnitsConverter() local
457 assertEquals("measures length", 2, measures.length()); in testComplexUnitsConverter()
458 if (2 == measures.length()) { in testComplexUnitsConverter()
459 assertEquals("1.9999: measures[0] value", 1.0, measures[0]->getNumber().getDouble(status)); in testComplexUnitsConverter()
461 measures[0]->getUnit().getIdentifier()); in testComplexUnitsConverter()
463 measures[1]->getNumber().getDouble(status), 0.0001); in testComplexUnitsConverter()
465 measures[1]->getUnit().getIdentifier()); in testComplexUnitsConverter()
472 measures = converter.convert((2.0 - DBL_EPSILON), nullptr, status); in testComplexUnitsConverter()
473 assertEquals("measures length", 2, measures.length()); in testComplexUnitsConverter()
474 if (2 == measures.length()) { in testComplexUnitsConverter()
475 assertEquals("1 - eps: measures[0] value", 2.0, measures[0]->getNumber().getDouble(status)); in testComplexUnitsConverter()
477 measures[0]->getUnit().getIdentifier()); in testComplexUnitsConverter()
478 assertEquals("1 - eps: measures[1] value", 0.0, measures[1]->getNumber().getDouble(status)); in testComplexUnitsConverter()
480 measures[1]->getUnit().getIdentifier()); in testComplexUnitsConverter()
493 measures = converter.convert((2.0 - DBL_EPSILON), nullptr, status); in testComplexUnitsConverter()
494 assertEquals("measures length", 2, measures.length()); in testComplexUnitsConverter()
495 if (2 == measures.length()) { in testComplexUnitsConverter()
497 measures[0]->getNumber().getDouble(status)); in testComplexUnitsConverter()
499 measures[0]->getUnit().getIdentifier()); in testComplexUnitsConverter()
501 measures[1]->getNumber().getDouble(status)); in testComplexUnitsConverter()
503 measures[1]->getUnit().getIdentifier()); in testComplexUnitsConverter()
509 measures = converter.convert((1.0 + 1e-15), nullptr, status); in testComplexUnitsConverter()
510 assertEquals("measures length", 2, measures.length()); in testComplexUnitsConverter()
511 if (2 == measures.length()) { in testComplexUnitsConverter()
513 measures[0]->getNumber().getDouble(status)); in testComplexUnitsConverter()
515 measures[0]->getUnit().getIdentifier()); in testComplexUnitsConverter()
517 measures[1]->getNumber().getDouble(status), 1); in testComplexUnitsConverter()
519 measures[1]->getUnit().getIdentifier()); in testComplexUnitsConverter()
524 measures = converter.convert((1.0 + 2e-16), nullptr, status); in testComplexUnitsConverter()
525 assertEquals("measures length", 2, measures.length()); in testComplexUnitsConverter()
526 if (2 == measures.length()) { in testComplexUnitsConverter()
528 measures[0]->getNumber().getDouble(status)); in testComplexUnitsConverter()
530 measures[0]->getUnit().getIdentifier()); in testComplexUnitsConverter()
532 measures[1]->getNumber().getDouble(status)); in testComplexUnitsConverter()
534 measures[1]->getUnit().getIdentifier()); in testComplexUnitsConverter()
548 auto measures = complexConverter.convert(10.0, nullptr, status); in testComplexUnitConverterSorting() local
550 if (2 == measures.length()) { in testComplexUnitConverterSorting()
551 assertEquals("inch-and-foot unit 0", "inch", measures[0]->getUnit().getIdentifier()); in testComplexUnitConverterSorting()
552 assertEquals("inch-and-foot unit 1", "foot", measures[1]->getUnit().getIdentifier()); in testComplexUnitConverterSorting()
554 … assertEqualsNear("inch-and-foot value 0", 9.7008, measures[0]->getNumber().getDouble(), 0.0001); in testComplexUnitConverterSorting()
555 assertEqualsNear("inch-and-foot value 1", 32, measures[1]->getNumber().getInt64(), 0.00001); in testComplexUnitConverterSorting()
754 checkOutput(unitsTest, msg.data(), expected, routeResult.measures, 0.0000000001); in unitPreferencesTestDataLineFn()