Browse Source

* rtti is case sensitive

peter 22 years ago
parent
commit
d338eb525d
1 changed files with 3 additions and 2 deletions
  1. 3 2
      tests/webtbs/tw1888.pp

+ 3 - 2
tests/webtbs/tw1888.pp

@@ -1,3 +1,4 @@
+{ %version=1.1 }
 program dumpprops;
 program dumpprops;
 
 
 {$ifdef fpc}
 {$ifdef fpc}
@@ -38,11 +39,11 @@ begin
   t:=TTest.Create;
   t:=TTest.Create;
   p:=GetPropInfo(t,'Next');
   p:=GetPropInfo(t,'Next');
   if (p<>nil) and
   if (p<>nil) and
-     (p^.name=Upcase('Next')) then
+     (p^.name='Next') then
    writeln('Success')
    writeln('Success')
   else
   else
    begin
    begin
-     writeln('ERROR!');
+     writeln('ERROR! Got: ',p^.name);
      halt(1);
      halt(1);
    end;
    end;
 end.
 end.