Class SIPrefixFormatterTest

java.lang.Object
org.djunits.unit.si.SIPrefixFormatterTest

public class SIPrefixFormatterTest extends Object
testje.java.

Copyright (c) 2020-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License
Author:
Alexander Verbraeck, Peter Knoppers
  • Constructor Details

    • SIPrefixFormatterTest

      public SIPrefixFormatterTest()
  • Method Details

    • testDoubleSIPrefixFormatter

      @Test public void testDoubleSIPrefixFormatter()
      Test the double scalar SI Prefix formatter.
    • checks

      public static void checks(double value)
      Perform all checks using the specified exponent value.
      Parameters:
      value - double; the value
    • checkMass

      public static void checkMass(double value, boolean sign)
      Check the formatting for Mass.
      Parameters:
      value - double; the value
      sign - boolean; if true; invert the value
    • checkEnergy

      public static void checkEnergy(double value, boolean sign)
      Check the formatting for Energy.
      Parameters:
      value - double; the value
      sign - boolean; if true; invert the value
    • checkTemperature

      public static void checkTemperature(double value, boolean sign)
      Check the formatting for Temperature.
      Parameters:
      value - double; the value
      sign - boolean; if true; invert the value
    • checkDimensionless

      public static void checkDimensionless(double value, boolean sign)
      Check the formatting for DimensionLess.
      Parameters:
      value - double; the value
      sign - boolean; if true; invert the value