java.math.BigInteger testing error

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • 1.4.0
    • Affects Version/s: 1.4.0
    • Component/s: core-libs
    • None
    • beta
    • sparc
    • solaris_7

      >By chance I found a case where one of your tests in incorrect. In
      >divideAndRemainder you have:
      >
      > BigInteger z = x.divide(BigInteger.valueOf(2L));
      > y = x.divideAndRemainder(z);
      > if (!y[0].equals(BigInteger.valueOf(2))) {
      > failCount1++;
      >
      >However this test will fail if x == 3 (and only if x == 3)

            Assignee:
            Michael Mccloskey (Inactive)
            Reporter:
            Michael Mccloskey (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: