[fpc-pascal] TMaskUtils.ValidateInput function: how is it supposed to behave?
Luiz Americo Pereira Camara
luizamericop at gmail.com
Mon Apr 18 20:26:36 CEST 2016
2016-04-18 13:47 GMT-03:00 Bart <bartjunk64 at gmail.com>:
[..]
> The internal processing of the (edit)mask is the same as TMaskEdit.
> If that is broken somehow, it is also broken in TMaskEdit.
>
> The only functions that may need adjustments are
>
> * function FormatMaskText(const EditMask: string; const AValue: string):
> string;
> * function FormatMaskInput(const EditMask: string): string;
> * function MaskDoFormatText(const EditMask: string; const AValue: string;
> ASpaceChar: Char): string;
> * function TMaskUtils.TryValidateInput(out ValidatedString: String):
> Boolean;
>
> But since there is no real documentation and there is no test suite,
> it's hard to tell if they do not function as they should or introduce
> regressions.
>
>
I propose to write a test suite first with the desired output, based on
Delphi.
Given that the implementation becomes a detail, subject to changes in
future.
I can take the duty of starting, just need to know the format. fpcunit or
plain tests like most fpc tests?
Luiz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160418/364e1e16/attachment.html>
More information about the fpc-pascal
mailing list