Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8345403

Add more randomized tests to better cover FloatingDecimal parsing

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • core-libs
    • b27

      FloatingDecimal parsing is covered by tests in class TestFloatingDecimal.
      However, these tests only parse strings produced by [Float|Double].toString(), which are very structured and not generic enough. Further, they are limited to decimal input.

      To better cover cases of input that is less structured and that better represent real-world scenarios, more random tests are recommended.
      Most aspects of a syntactically correct input string should be randomized, including the number of digits, the presence of a point, whitespaces, etc.

            rgiulietti Raffaello Giulietti
            rgiulietti Raffaello Giulietti
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: