瀏覽代碼

* Be more descriptive in test output

git-svn-id: trunk@17777 -
pierre 14 年之前
父節點
當前提交
18f5b6c2a6
共有 1 個文件被更改,包括 7 次插入1 次删除
  1. 7 1
      tests/test/library/tlib1b.pp

+ 7 - 1
tests/test/library/tlib1b.pp

@@ -23,9 +23,15 @@ begin
   p(a);
   p(a);
   if a <> 1 then
   if a <> 1 then
     halt(1);
     halt(1);
+  a:=0;
   p2(a);
   p2(a);
   if a <> 2 then
   if a <> 2 then
-    halt(2);
+    begin
+      if a=1 then
+        writeln('Error: Calling tlib1a library p function again instead ',
+          'of tlib1a2 p function.');
+      halt(2);
+    end;
 
 
   writeln('ok');
   writeln('ok');
 end.
 end.