Skip to content

Instantly share code, notes, and snippets.

@plutov
Last active August 30, 2018 03:38
Show Gist options
  • Save plutov/667342606fa7a18bc32580b1eaa4a016 to your computer and use it in GitHub Desktop.
Save plutov/667342606fa7a18bc32580b1eaa4a016 to your computer and use it in GitHub Desktop.
table2
var tests = []struct {
name string
word string
want []string
}{
{"empty input string", "", []string{}},
{"two anagrams", "Protectionism", []string{"Cite no imports", "Nice to imports"}},
{"input with space", "Real fun", []string{"funeral"}},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment