unitTest.javascript 384 B

1234567
  1. Test.assertEquals(profitableGamble(0.2, 50, 9), true)
  2. Test.assertEquals(profitableGamble(0.9, 1, 2), false)
  3. Test.assertEquals(profitableGamble(0.9, 3, 2), true)
  4. Test.assertEquals(profitableGamble(0.33, 10, 3.30), true)
  5. Test.assertEquals(profitableGamble(0, 1000, 0.01), false)
  6. Test.assertEquals(profitableGamble(0.1, 1000, 7), true)
  7. Test.assertEquals(profitableGamble(0, 0, 0), false)