Add manual Components.Validator::validator method

Support manual validation where needed, add unit tests.

This also slightly changes the behaviour of non-required field, since
an empty non-required field should be valid.
This commit is contained in:
Michael Gratton 2019-11-20 14:45:04 +11:00 committed by Michael James Gratton
parent c9fc877d12
commit ca6cbecb83
4 changed files with 127 additions and 10 deletions

View file

@ -53,6 +53,7 @@ int main(string[] args) {
client.add_suite(new Application.ConfigurationTest().get_suite());
client.add_suite(new ClientWebViewTest().get_suite());
client.add_suite(new Composer.WebViewTest().get_suite());
client.add_suite(new Components.ValidatorTest().get_suite());
client.add_suite(new Util.Avatar.Test().get_suite());
client.add_suite(new Util.Cache.Test().get_suite());
client.add_suite(new Util.Email.Test().get_suite());