<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-04-18 13:47 GMT-03:00 Bart <span dir="ltr"><<a href="mailto:bartjunk64@gmail.com" target="_blank">bartjunk64@gmail.com</a>></span>:<br><div><br>[..] <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The internal processing of the (edit)mask is the same as TMaskEdit.<br>
If that is broken somehow, it is also broken in TMaskEdit.<br>
<br>
The only functions that may need adjustments are<br>
<br>
* function FormatMaskText(const EditMask: string; const AValue: string): string;<br>
* function FormatMaskInput(const EditMask: string): string;<br>
* function MaskDoFormatText(const EditMask: string; const AValue: string;<br>
ASpaceChar: Char): string;<br>
* function TMaskUtils.TryValidateInput(out ValidatedString: String): Boolean;<br>
<br>
But since there is no real documentation and there is no test suite,<br>
it's hard to tell if they do not function as they should or introduce<br>
regressions.<br>
<br></blockquote><div><br></div><div>I propose to write a test suite first with the desired output, based on Delphi. <br><br>Given that the implementation becomes a detail, subject to changes in future.<br><br></div><div>I can take the duty of starting, just need to know the format. fpcunit or plain tests like most fpc tests? <br></div><div><br></div><div>Luiz<br></div></div></div></div>