Advertisement
Guest User

Untitled

a guest
Oct 14th, 2019
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. @DataProvider
  2. public Object[][] incorrect() {
  3. return new Object[][]{
  4. { Double.longBitsToDouble(0x0001234567890123L), Math.sqrt(Double.longBitsToDouble(0x0001234567890123L)) },
  5. { Double.longBitsToDouble(0x0000098264430100L), Math.sqrt(Double.longBitsToDouble(0x0000098264430100L)) }
  6. };
  7. }
  8.  
  9. @DataProvider
  10. public Object[][] correct() {
  11. return new Object[][]{
  12. { Double.longBitsToDouble(0x0421234567890123L), Math.sqrt(Double.longBitsToDouble(0x0421234567890123L)) },
  13. { Double.longBitsToDouble(0x0790000000000000L), Math.sqrt(Double.longBitsToDouble(0x0790000000000000L)) },
  14. { Double.longBitsToDouble(0x0010000000000000L), Math.sqrt(Double.longBitsToDouble(0x0010000000000000L)) }
  15. };
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement