texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/t/test_parser_registrar.t: use is instead of


From: Patrice Dumas
Subject: branch master updated: * tp/t/test_parser_registrar.t: use is instead of ok when relevant.
Date: Fri, 04 Oct 2024 06:03:45 -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 9e0960ea46 * tp/t/test_parser_registrar.t: use is instead of ok when 
relevant.
9e0960ea46 is described below

commit 9e0960ea46b2adc969165e9882cff5172c123484
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sun Aug 11 09:06:29 2024 +0200

    * tp/t/test_parser_registrar.t: use is instead of ok when relevant.
---
 ChangeLog                    | 16 ++++------------
 tp/t/test_parser_registrar.t |  6 +++---
 2 files changed, 7 insertions(+), 15 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index e106b76863..ab670b014d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2024-08-11  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/t/test_parser_registrar.t: use is instead of ok when relevant.
+
 2024-08-10  Patrice Dumas  <pertusus@free.fr>
 
        * tp/maintain/regenerate_C_options_info.pl: remove generation of
@@ -79,18 +83,6 @@
        tp/Texinfo/XS/convert/html_converter_init_options.h: move enum
        BUTTON_special_unit_directions to create_buttons.h.
 
-2024-08-10  Patrice Dumas  <pertusus@free.fr>
-
-       * tp/Texinfo/XS/convert/texinfo.c (txi_converter),
-       tp/Texinfo/XS/teximakehtml.c (main): create converter before
-       txi_converter such that it may be used to get sorted options.
-
-       * tp/Texinfo/XS/main/utils.c (options_list_add_option): rename
-       list_add_option as options_list_add_option.
-
-       * tp/Texinfo/XS/teximakehtml.c (main, add_button_option): demonstrate
-       passing button and other options to txi_converter.
-
 2024-08-10  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Texinfo/XS/convert/create_buttons.c (new_button_specification)
diff --git a/tp/t/test_parser_registrar.t b/tp/t/test_parser_registrar.t
index 618865236b..ed89093c06 100644
--- a/tp/t/test_parser_registrar.t
+++ b/tp/t/test_parser_registrar.t
@@ -32,7 +32,7 @@ ok ($parser_registrar eq $registrar, 'reused registrar');
 
 my ($error_warnings_list, $error_count) = $parser_registrar->errors();
 
-ok ($error_count == 2, 'error count');
+is ($error_count, 2, 'error count');
 
 # line_nr is undef with document_error()
 my @errors_references = ([undef, $initial_error],
@@ -42,12 +42,12 @@ my $error_idx = 0;
 foreach my $error_message (@$error_warnings_list) {
   my ($error_line_nr_reference, $error_line_reference)
           = @{$errors_references[$error_idx]};
-  ok ($error_message->{'type'} eq 'error', "error type $error_idx");
+  is ($error_message->{'type'}, 'error', "error type $error_idx");
   ok (((not defined($error_message->{'line_nr'})
        and not defined($error_line_nr_reference))
       or $error_message->{'line_nr'} == $error_line_nr_reference),
       "error line $error_idx");
-  ok ($error_message->{'error_line'} eq $error_line_reference."\n",
+  is ($error_message->{'error_line'}, $error_line_reference."\n",
       "error message $error_idx");
   $error_idx++;
 }



reply via email to

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