fpspreadsheet: Reactivate the expression parser test cases which were commented (and forgotten) some time ago. Activate missing argument tests. Add some "exotic" formulas. All passed.

git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4186 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
wp_xxyyzz
2015-06-08 17:03:55 +00:00
parent c4c1eeece9
commit e121751361
5 changed files with 129 additions and 186 deletions

View File

@ -1518,7 +1518,9 @@ begin
(Pos('<', AppoSt) = 1) or
(Pos('>', AppoSt) = 1) or
(Pos('"', AppoSt) = 1) or
(Pos(''', AppoSt) = 1) then begin
(Pos(''', AppoSt) = 1) or
(Pos('%', AppoSt) = 1) // %
then begin
//'&' is the first char of a special chat, it must not be converted
WrkStr:=WrkStr + AText[Idx];
end else begin
@ -1529,6 +1531,7 @@ begin
'>': WrkStr:=WrkStr + '>';
'"': WrkStr:=WrkStr + '"';
'''':WrkStr:=WrkStr + ''';
'%': WrkStr:=WrkStr + '%';
{
#10: WrkStr := WrkStr + '
';
#13: WrkStr := WrkStr + '
';