Browse Source

* Change test to test resourcestring correctness.

git-svn-id: trunk@5645 -
daniel 18 years ago
parent
commit
787ed7e230
1 changed files with 11 additions and 2 deletions
  1. 11 2
      tests/webtbs/tw3492.pp

+ 11 - 2
tests/webtbs/tw3492.pp

@@ -1,8 +1,17 @@
 {$mode fpc}
 
-{ Resourcestrings are pre-initialized }
 resourcestring
   s = 'OK';
+
+var t:ansistring;
+
 begin
-  writeln(s);
+  t:=s;
+  if t<>'OK' then
+    begin
+      writeln('Resourcestring error!');
+      halt(1);
+    end
+  else
+    writeln(s);
 end.