Skip to content
This repository has been archived by the owner on Jul 27, 2022. It is now read-only.

cephes.stdtr not increasing?! #19

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
13 changes: 13 additions & 0 deletions luasrc/tests/test_stdtr.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
require 'cephes'
local ffi = require 'ffi'
local myTests = {}
local tester = torch.Tester()


function myTests.testHuge()
tester:asserteq(cephes.stdtr(10, math.huge), 1, 'CDF(math.huge) != 1')
tester:asserteq(cephes.stdtr(10, 1e155), 1, 'CDF(1e155) != 1')
end

tester:add(myTests)
tester:run()