Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (11 sloc) 242 Bytes
package main
import (
"testing"
)
func TestGenerateAllPermutations(t *testing.T) {
expected := "102"
got := FindNthPermutation(2, 0, 1, 2)
if expected != got {
t.Errorf("Assertion error.\nExpected: %v.\nGot: %v.", expected, got)
}
}