소스 검색

* 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);
   if a <> 1 then
     halt(1);
+  a:=0;
   p2(a);
   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');
 end.