dankamongmen / panelreels

high-level objects built atop ncurses
https://nick-black.com/dankwiki/index.php/Outcurses
Apache License 2.0
8 stars 1 forks source link

Error in OutcursesPrefix.PowersOfTenMinusOne when run under cmake #20

Closed dankamongmen closed 5 years ago

dankamongmen commented 5 years ago

When i run make test in a cmake directory, I get a failure in OutcursesPrefix.PowersOfTenMinusOne:

      Start 14: OutcursesPrefix.PowersOfTenMinusOne
14/15 Test #14: OutcursesPrefix.PowersOfTenMinusOne .........***Failed    0.00 sec

when I run outcurses-tester by itself from the command line, I get no such problems. This doesn't make much sense. Get to the bottom of it.

dankamongmen commented 5 years ago

I was able to get output via --output-on-failure:

[ RUN      ] OutcursesPrefix.PowersOfTenMinusOne
/home/dank/src/dankamongmen/outcurses-0.0.3/tests/prefix.cpp:203: Failure
Expected equality of these values:
  gold
    Which is: "10.00K"
  buf
    Which is: "9.99K"
/home/dank/src/dankamongmen/outcurses-0.0.3/tests/prefix.cpp:203: Failure
Expected equality of these values:
  gold
    Which is: "100.00K"
  buf
    Which is: "99.99K"
/home/dank/src/dankamongmen/outcurses-0.0.3/tests/prefix.cpp:203: Failure
Expected equality of these values:
  gold
    Which is: "1000.00"
  buf
    Which is: "999.99K"
/home/dank/src/dankamongmen/outcurses-0.0.3/tests/prefix.cpp:203: Failure
Expected equality of these values:
  gold
    Which is: "10.00M"
  buf
    Which is: "9.99M"
/home/dank/src/dankamongmen/outcurses-0.0.3/tests/prefix.cpp:203: Failure
Expected equality of these values:
  gold
    Which is: "100.00M"
  buf
    Which is: "99.99M"
/home/dank/src/dankamongmen/outcurses-0.0.3/tests/prefix.cpp:203: Failure
Expected equality of these values:
  gold
    Which is: "1000.00"
  buf
    Which is: "999.99M"
/home/dank/src/dankamongmen/outcurses-0.0.3/tests/prefix.cpp:203: Failure
Expected equality of these values:
  gold
    Which is: "10.00G"
  buf
    Which is: "9.99G"
/home/dank/src/dankamongmen/outcurses-0.0.3/tests/prefix.cpp:203: Failure
Expected equality of these values:
  gold
    Which is: "100.00G"
  buf
    Which is: "99.99G"
/home/dank/src/dankamongmen/outcurses-0.0.3/tests/prefix.cpp:203: Failure
Expected equality of these values:
  gold
    Which is: "1000.00"
  buf
    Which is: "999.99G"
/home/dank/src/dankamongmen/outcurses-0.0.3/tests/prefix.cpp:203: Failure
Expected equality of these values:
  gold
    Which is: "10.00T"
  buf
    Which is: "9.99T"
/home/dank/src/dankamongmen/outcurses-0.0.3/tests/prefix.cpp:203: Failure
Expected equality of these values:
  gold
    Which is: "100.00T"
  buf
    Which is: "99.99T"
/home/dank/src/dankamongmen/outcurses-0.0.3/tests/prefix.cpp:203: Failure
Expected equality of these values:
  gold
    Which is: "1000.00"
  buf
    Which is: "999.99T"
/home/dank/src/dankamongmen/outcurses-0.0.3/tests/prefix.cpp:203: Failure
Expected equality of these values:
  gold
    Which is: "10.00P"
  buf
    Which is: "9.99P"
/home/dank/src/dankamongmen/outcurses-0.0.3/tests/prefix.cpp:203: Failure
Expected equality of these values:
  gold
    Which is: "100.00P"
  buf
    Which is: "99.99P"
/home/dank/src/dankamongmen/outcurses-0.0.3/tests/prefix.cpp:203: Failure
Expected equality of these values:
  gold
    Which is: "1000.00"
  buf
    Which is: "999.99P"
/home/dank/src/dankamongmen/outcurses-0.0.3/tests/prefix.cpp:203: Failure
Expected equality of these values:
  gold
    Which is: "10.00E"
  buf
    Which is: "9.99E"
[  FAILED  ] OutcursesPrefix.PowersOfTenMinusOne (0 ms)
dankamongmen commented 5 years ago

Looks like a rounding issue, maybe?