util: Handle negative values for NumToAlpha

This shouldn't be used often, but it makes writing some kinds of code
easier.
This commit is contained in:
James Shubin
2023-06-29 15:14:06 -04:00
parent 97c7d176f0
commit df9b338279
2 changed files with 4 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ func TestNumToAlpha(t *testing.T) {
{702, "aaa"},
{703, "aab"},
{63269, "cool"},
{-1, ""},
}
for _, test := range numToAlphaTests {