Skip to content

Commit

Permalink
add test file in test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
ibond84 committed Nov 24, 2015
1 parent b694a4e commit 0722eef
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions TestSuite/caseinsensitive.pas
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
uses system, system.Collections.generic;
type TCLASS = class
public function tostring: STRING; OVERRIDE;
begin
RESULT := 'ok';
end;
END;

BEGIN
var lst := new list<integer>;
lst.add(2);
assert(lst[0]=2);
assert(lst.toarray.first=2);
lst := new system.collections.generic.list<integer>;
var obj := new tclass;
assert(obj.Tostring = 'ok');
END.

0 comments on commit 0722eef

Please sign in to comment.