Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
15 lines (11 sloc) 245 Bytes
package main
import (
"testing"
)
func TestGetCellOnPascalTriangle(t *testing.T) {
expected := uint64(6)
got := GetPascalsTriangleCell(4, 2)
if expected != got {
t.Errorf("Assertion error.\nExpected: %d.\nGot: %d.", expected, got)
}
}