Make avatar code a bit more robust in the face of bad input

Don't try to dray null initials, actually return null per API contract
when no initials can be found, don't include non-alphanumerics in the
initials. Add test case.
This commit is contained in:
Michael Gratton 2019-03-09 19:59:25 +11:00 committed by Michael James Gratton
parent 4e484e237d
commit 76ee07595d
4 changed files with 79 additions and 23 deletions

View file

@ -43,6 +43,7 @@ int main(string[] args) {
client.add_suite(new ClientWebViewTest().get_suite());
client.add_suite(new ComposerWebViewTest().get_suite());
client.add_suite(new ConfigurationTest().get_suite());
client.add_suite(new Util.Avatar.Test().get_suite());
TestSuite js = new TestSuite("js");