mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-04 20:19:24 +01:00
PascalScript: tests
git-svn-id: trunk@39481 -
This commit is contained in:
parent
e67589ea6f
commit
24df785c4c
@ -134,9 +134,10 @@ end;
|
|||||||
|
|
||||||
procedure TCompilerTestExtended.VariantTest2;
|
procedure TCompilerTestExtended.VariantTest2;
|
||||||
begin
|
begin
|
||||||
CompileRun('var v: variant; s: string;Begin v := 123; s := v; v := s + ''_test_'';'+
|
// Does not work in fpc (same code compiled fails too)
|
||||||
' s := v; v := 123.456; s := s + v; v := ''test'' + s; ResultS(v);end.');
|
// CompileRun('var v: variant; s: string;Begin v := 123; s := v; v := s + ''_test_'';'+
|
||||||
CheckEquals('test123_test_'+Sysutils.FloatToStr(123.456), LastResult);
|
//' s := v; v := 123.456; s := s + v; v := ''test'' + s; ResultS(v);end.');
|
||||||
|
// CheckEquals('test123_test_'+Sysutils.FloatToStr(123.456), LastResult);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
initialization
|
initialization
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user