Skip to main content

Fuchu

Basic Setup

Solution

let add a b = a + b
let add a b = a + b

Tests

module Tests = begin
    open Fuchu
    let suite =
        testList "Add" [
            testCase "Adds two numbers" <|
                fun _ ->
                    Assert.Equal("add(1, 1) == 2", 2, add 1 1)
        ]
end
module Tests = begin
    open Fuchu
    let suite =
        testList "Add" [
            testCase "Adds two numbers" <|
                fun _ ->
                    Assert.Equal("add(1, 1) == 2", 2, add 1 1)
        ]
end