Last active
August 30, 2018 03:38
-
-
Save plutov/667342606fa7a18bc32580b1eaa4a016 to your computer and use it in GitHub Desktop.
table2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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