texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: tp/t/test_utils.pl: use is () for comparisons


From: Patrice Dumas
Subject: branch master updated: tp/t/test_utils.pl: use is () for comparisons
Date: Thu, 18 Aug 2022 15:58:48 -0400

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new d010792b3d tp/t/test_utils.pl: use is () for comparisons
d010792b3d is described below

commit d010792b3d509af68ced356a245f347489a07032
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Thu Aug 18 21:58:24 2022 +0200

    tp/t/test_utils.pl: use is () for comparisons
---
 tp/t/test_utils.pl | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/tp/t/test_utils.pl b/tp/t/test_utils.pl
index 893d61334a..399cf9d66c 100644
--- a/tp/t/test_utils.pl
+++ b/tp/t/test_utils.pl
@@ -1376,17 +1376,17 @@ sub test($$)
     if ($todos{'text'}) {
       SKIP: {
         skip $todos{'text'}, 1;
-        ok ($converted_text eq $result_texts{$test_name}, $test_name.' text');
+        is ($converted_text, $result_texts{$test_name}, $test_name.' text');
       }
     } else {
-      ok ($converted_text eq $result_texts{$test_name}, $test_name.' text');
+      is ($converted_text, $result_texts{$test_name}, $test_name.' text');
     }
     $tests_count = $nr_comparisons;
     if (defined($result_directions_text{$test_name})) {
       cmp_trimmed($elements, $result_elements{$test_name},
                   \@avoided_keys_elements, $test_name.' elements');
       $tests_count++;
-      ok ($directions_text eq $result_directions_text{$test_name},
+      is ($directions_text, $result_directions_text{$test_name},
           $test_name.' directions text');
       $tests_count++;
     }
@@ -1429,13 +1429,13 @@ sub test($$)
           if ($todos{$format}) {
             SKIP: {
               skip $todos{$format}, 1;
-              ok ($converted{$format}
-                              eq $result_converted{$format}->{$test_name},
-                   $test_name.' converted '.$format);
+              is ($converted{$format},
+                  $result_converted{$format}->{$test_name},
+                  $test_name.' converted '.$format);
             }
           } else {
-            ok ($converted{$format}
-                           eq $result_converted{$format}->{$test_name},
+            is ($converted{$format},
+                $result_converted{$format}->{$test_name},
                 $test_name.' converted '.$format);
           }
         }



reply via email to

[Prev in Thread] Current Thread [Next in Thread]