packages feed

hunit-gui-0.1: Test/HUnit/Gui/BarComputations.hs

module Test.HUnit.Gui.BarComputations (barWidth)
where

import Test.HUnit.Base

barWidth :: Counts -> Int -> Double
barWidth counts' totalWidth =
    (fromIntegral totalWidth) * (fromIntegral $ tried counts') / (fromIntegral $ cases counts')