[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Makefile.tres: remove t/test_parser_registra
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Makefile.tres: remove t/test_parser_registrar.t test, the registrar should be internal only. |
Date: |
Sat, 19 Oct 2024 16:09:56 -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 954bde0cbf * tp/Makefile.tres: remove t/test_parser_registrar.t test,
the registrar should be internal only.
954bde0cbf is described below
commit 954bde0cbf1f7fe2f31b4b5595dde9e9ca9e0daf
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Sat Oct 19 22:08:41 2024 +0200
* tp/Makefile.tres: remove t/test_parser_registrar.t test, the
registrar should be internal only.
---
ChangeLog | 5 +++++
tp/Makefile.tres | 1 -
tp/t/test_parser_registrar.t | 53 --------------------------------------------
3 files changed, 5 insertions(+), 54 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index ecc330ce34..a53aeef5c5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-10-19 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Makefile.tres: remove t/test_parser_registrar.t test, the
+ registrar should be internal only.
+
2024-10-19 Gavin Smith <gavinsmith0123@gmail.com>
* README-hacking: Document gnulib-tool network access.
diff --git a/tp/Makefile.tres b/tp/Makefile.tres
index ec22787062..d950f1265a 100644
--- a/tp/Makefile.tres
+++ b/tp/Makefile.tres
@@ -61,7 +61,6 @@ test_tap_files_generated_list = \
t/test_fill_gaps_in_sectioning.t \
t/test_is_content_empty.t \
t/test_parse_texi_line.t \
- t/test_parser_registrar.t \
t/test_protect_contents.t \
t/test_protect_hashchar_at_line_beginning.t \
t/test_sort.t \
diff --git a/tp/t/test_parser_registrar.t b/tp/t/test_parser_registrar.t
deleted file mode 100644
index ed89093c06..0000000000
--- a/tp/t/test_parser_registrar.t
+++ /dev/null
@@ -1,53 +0,0 @@
-use strict;
-
-use lib '.';
-use Texinfo::ModulePath (undef, undef, undef, 'updirs' => 2);
-
-use Test::More;
-
-BEGIN { plan tests => 9; }
-
-use Texinfo::Parser;
-use Texinfo::Report;
-
-# For consistent error messages, use the C locale
-$ENV{LC_ALL} = 'C';
-$ENV{LANGUAGE} = 'en';
-
-
-ok(1, "modules loading");
-
-my $registrar = Texinfo::Report::new();
-
-my $initial_error = "Initial error";
-$registrar->document_error($initial_error);
-
-my $parser = Texinfo::Parser::parser({'registrar' => $registrar});
-
-# this also tests errors with line_errors not defined
-my $document = $parser->parse_texi_piece("\@end format\n");
-
-my $parser_registrar = $parser->registrar();
-ok ($parser_registrar eq $registrar, 'reused registrar');
-
-my ($error_warnings_list, $error_count) = $parser_registrar->errors();
-
-is ($error_count, 2, 'error count');
-
-# line_nr is undef with document_error()
-my @errors_references = ([undef, $initial_error],
- [1, 'unmatched `@end format\'']);
-
-my $error_idx = 0;
-foreach my $error_message (@$error_warnings_list) {
- my ($error_line_nr_reference, $error_line_reference)
- = @{$errors_references[$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");
- is ($error_message->{'error_line'}, $error_line_reference."\n",
- "error message $error_idx");
- $error_idx++;
-}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Makefile.tres: remove t/test_parser_registrar.t test, the registrar should be internal only.,
Patrice Dumas <=