void () { doTest("Vasya Pavlovich Pupkin <asdasd@localhost>", "Vasya", "Pupkin", "VPP", "Vasya Pavlovich Pupkin", "asdasd@localhost"); doTest("danah boyd <danah@datasociety.net>", "danah", "boyd", "DB", "danah boyd", "danah@datasociety.net"); doTest("geohot <geohot@gmail.com>", "geohot", "geohot", "G", "geohot", "geohot@gmail.com"); doTest("Vasya Pavlovich Pupkin", "Vasya", "Pupkin", "VPP", "Vasya Pavlovich Pupkin", "Vasya Pavlovich Pupkin"); doTest("vasya.pupkin@localhost.com", "Vasya", "Pupkin", "VP", "vasya.pupkin@localhost.com", "vasya.pupkin@localhost.com"); doTest("vasya-pavlovich-pupkin@localhost.com", "Vasya", "Pupkin", "VPP", "vasya-pavlovich-pupkin@localhost.com", "vasya-pavlovich-pupkin@localhost.com"); doTest("vasya", "vasya", "vasya", "V", "vasya", "vasya"); doTest("Vasya Pupkin", "Vasya", "Pupkin", "VP", "Vasya Pupkin", "Vasya Pupkin"); doTest("Catherine Zeta-Jones", "Catherine", "Zeta-Jones", "CZJ", "Catherine Zeta-Jones", "Catherine Zeta-Jones"); doTest("vasya-pupkin", "vasya-pupkin", "vasya-pupkin", "VP", "vasya-pupkin", "vasya-pupkin"); doTest("vasya.pupkin", "vasya.pupkin", "vasya.pupkin", "VP", "vasya.pupkin", "vasya.pupkin"); doTest("<asdasd@localhost> Vasya Pupkin", "Vasya", "Pupkin", "VP", "Vasya Pupkin", "asdasd@localhost"); doTest("<vasya.pupkin@localhost>", "Vasya", "Pupkin", "VP", "vasya.pupkin@localhost", "vasya.pupkin@localhost"); doTest("pupkin <vasya@localhost>", "pupkin", "pupkin", "P", "pupkin", "vasya@localhost"); doTest("@localhost", "@localhost", "@localhost", "@", "@localhost", "@localhost"); doTest("vasya <email>", "vasya", "<email>", "VE", "vasya <email>", "vasya <email>"); doTest("vasya <.email.>", "vasya", "<.email.>", "VE", "vasya <.email.>", "vasya <.email.>"); doTest("Vasya-TEST@localhost", "Vasya", "TEST", "VT", "Vasya-TEST@localhost", "Vasya-TEST@localhost"); }