[latex3-commits] [git/LaTeX3-latex3-latex3] master: Catch error case of giving tuple to \fp_step_function:nnnN (see #438) (fadbe7c)
Bruno Le Floch
bruno at le-floch.fr
Sun Feb 25 21:26:12 CET 2018
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/fadbe7c49637582a10b1b358767ec95d0524fc33
>---------------------------------------------------------------
commit fadbe7c49637582a10b1b358767ec95d0524fc33
Author: Bruno Le Floch <bruno at le-floch.fr>
Date: Sun Feb 25 15:26:12 2018 -0500
Catch error case of giving tuple to \fp_step_function:nnnN (see #438)
>---------------------------------------------------------------
fadbe7c49637582a10b1b358767ec95d0524fc33
l3kernel/l3fp-logic.dtx | 20 +++++++++++++--
l3kernel/l3fp-traps.dtx | 4 +--
l3kernel/testfiles/m3expl001.luatex.tlg | 4 +++
l3kernel/testfiles/m3expl001.ptex.tlg | 4 +++
l3kernel/testfiles/m3expl001.tlg | 4 +++
l3kernel/testfiles/m3expl001.uptex.tlg | 4 +++
l3kernel/testfiles/m3expl001.xetex.tlg | 4 +++
l3kernel/testfiles/m3expl003.luatex.tlg | 4 +++
l3kernel/testfiles/m3expl003.ptex.tlg | 4 +++
l3kernel/testfiles/m3expl003.tlg | 4 +++
l3kernel/testfiles/m3expl003.uptex.tlg | 4 +++
l3kernel/testfiles/m3expl003.xetex.tlg | 4 +++
l3kernel/testfiles/m3fp-logic004.luatex.tlg | 36 +++++++++++++++++++++++++++
l3kernel/testfiles/m3fp-logic004.lvt | 7 +++++-
l3kernel/testfiles/m3fp-logic004.tlg | 36 +++++++++++++++++++++++++++
15 files changed, 138 insertions(+), 5 deletions(-)
diff --git a/l3kernel/l3fp-logic.dtx b/l3kernel/l3fp-logic.dtx
index 3a50e9b..6158451 100644
--- a/l3kernel/l3fp-logic.dtx
+++ b/l3kernel/l3fp-logic.dtx
@@ -366,7 +366,7 @@
% \end{macro}
%
% \begin{macro}[EXP]{\fp_step_function:nnnN, \fp_step_function:nnnc}
-% \begin{macro}[EXP]{\@@_step:wwwN}
+% \begin{macro}[EXP]{\@@_step:wwwN, \@@_step_fp:wwwN}
% \begin{macro}[EXP]{\@@_step:NnnnnN, \@@_step:NfnnnN}
% The approach here is somewhat similar to
% \cs{int_step_function:nnnN}. There are two subtleties: we use the
@@ -383,6 +383,7 @@
}
\cs_generate_variant:Nn \fp_step_function:nnnN { nnnc }
% \end{macrocode}
+% Only floating point numbers (not tuples) are allowed arguments.
% Only \enquote{normal} floating points (not $\pm 0$,
% $\pm\texttt{inf}$, \texttt{nan}) can be used as step; if positive,
% call \cs{@@_step:NnnnnN} with argument |>| otherwise~|<|. This
@@ -391,7 +392,20 @@
% progress. Conversion to decimal is done just before calling the
% user's function.
% \begin{macrocode}
-\cs_new:Npn \@@_step:wwwN #1 ; \s_@@ \@@_chk:w #2#3#4 ; #5; #6
+\cs_new:Npn \@@_step:wwwN #1#2; #3#4; #5#6; #7
+ {
+ \@@_if_type_fp:NTwFw #1 { } \s_@@ \__prg_break: \q_stop
+ \@@_if_type_fp:NTwFw #3 { } \s_@@ \__prg_break: \q_stop
+ \@@_if_type_fp:NTwFw #5 { } \s_@@ \__prg_break: \q_stop
+ \use_i:nnnn { \@@_step_fp:wwwN #1#2; #3#4; #5#6; #7 }
+ \__prg_break_point:
+ \use:n
+ {
+ \@@_error:nfff { fp-step-tuple } { \fp_to_tl:n { #1#2 ; } }
+ { \fp_to_tl:n { #3#4 ; } } { \fp_to_tl:n { #5#6 ; } }
+ }
+ }
+\cs_new:Npn \@@_step_fp:wwwN #1 ; \s_@@ \@@_chk:w #2#3#4 ; #5; #6
{
\token_if_eq_meaning:NNTF #2 1
{
@@ -467,6 +481,8 @@
% \end{macro}
%
% \begin{macrocode}
+\__kernel_msg_new:nnn { kernel } { fp-step-tuple }
+ { Tuple~argument~in~fp_step_...~{#1}{#2}{#3}. }
\__kernel_msg_new:nnn { kernel } { fp-bad-step }
{ Invalid~step~size~#2~in~step~function~#3. }
\__kernel_msg_new:nnn { kernel } { fp-tiny-step }
diff --git a/l3kernel/l3fp-traps.dtx b/l3kernel/l3fp-traps.dtx
index 02b769a..56ef624 100644
--- a/l3kernel/l3fp-traps.dtx
+++ b/l3kernel/l3fp-traps.dtx
@@ -333,11 +333,11 @@
%
% \subsection{Errors}
%
-% \begin{macro}[EXP]{\@@_error:nnnn, \@@_error:nnfn, \@@_error:nffn}
+% \begin{macro}[EXP]{\@@_error:nnnn, \@@_error:nnfn, \@@_error:nffn, \@@_error:nfff}
% \begin{macrocode}
\cs_new:Npn \@@_error:nnnn
{ \__kernel_msg_expandable_error:nnnnn { kernel } }
-\cs_generate_variant:Nn \@@_error:nnnn { nnf, nff }
+\cs_generate_variant:Nn \@@_error:nnnn { nnf, nff , nfff }
% \end{macrocode}
% \end{macro}
%
diff --git a/l3kernel/testfiles/m3expl001.luatex.tlg b/l3kernel/testfiles/m3expl001.luatex.tlg
index 55fd9e8..225117b 100644
--- a/l3kernel/testfiles/m3expl001.luatex.tlg
+++ b/l3kernel/testfiles/m3expl001.luatex.tlg
@@ -3760,6 +3760,8 @@ Defining \__fp_invalid_operation_o:fw on line ...
Defining \__fp_error:nnnn on line ...
Defining \__fp_error:nnfn on line ...
Defining \__fp_error:nffn on line ...
+Defining \exp_args:Nnfff on line ...
+Defining \__fp_error:nfff on line ...
Defining message LaTeX/kernel/unknown-fpu-exception on line ...
Defining message LaTeX/kernel/unknown-fpu-trap-type on line ...
Defining message LaTeX/kernel/fp-flow on line ...
@@ -4081,11 +4083,13 @@ Defining \fp_step_function:nnnN on line ...
Defining \exp_args:Nnnnc on line ...
Defining \fp_step_function:nnnc on line ...
Defining \__fp_step:wwwN on line ...
+Defining \__fp_step_fp:wwwN on line ...
Defining \__fp_step:NnnnnN on line ...
Defining \__fp_step:NfnnnN on line ...
Defining \fp_step_inline:nnnn on line ...
Defining \fp_step_variable:nnnNn on line ...
Defining \__fp_step:NNnnnn on line ...
+Defining message LaTeX/kernel/fp-step-tuple on line ...
Defining message LaTeX/kernel/fp-bad-step on line ...
Defining message LaTeX/kernel/fp-tiny-step on line ...
Defining \__fp_minmax_o:Nw on line ...
diff --git a/l3kernel/testfiles/m3expl001.ptex.tlg b/l3kernel/testfiles/m3expl001.ptex.tlg
index 9e1fea9..2c313fe 100644
--- a/l3kernel/testfiles/m3expl001.ptex.tlg
+++ b/l3kernel/testfiles/m3expl001.ptex.tlg
@@ -3748,6 +3748,8 @@ Defining \__fp_invalid_operation_o:fw on line ...
Defining \__fp_error:nnnn on line ...
Defining \__fp_error:nnfn on line ...
Defining \__fp_error:nffn on line ...
+Defining \exp_args:Nnfff on line ...
+Defining \__fp_error:nfff on line ...
Defining message LaTeX/kernel/unknown-fpu-exception on line ...
Defining message LaTeX/kernel/unknown-fpu-trap-type on line ...
Defining message LaTeX/kernel/fp-flow on line ...
@@ -4069,11 +4071,13 @@ Defining \fp_step_function:nnnN on line ...
Defining \exp_args:Nnnnc on line ...
Defining \fp_step_function:nnnc on line ...
Defining \__fp_step:wwwN on line ...
+Defining \__fp_step_fp:wwwN on line ...
Defining \__fp_step:NnnnnN on line ...
Defining \__fp_step:NfnnnN on line ...
Defining \fp_step_inline:nnnn on line ...
Defining \fp_step_variable:nnnNn on line ...
Defining \__fp_step:NNnnnn on line ...
+Defining message LaTeX/kernel/fp-step-tuple on line ...
Defining message LaTeX/kernel/fp-bad-step on line ...
Defining message LaTeX/kernel/fp-tiny-step on line ...
Defining \__fp_minmax_o:Nw on line ...
diff --git a/l3kernel/testfiles/m3expl001.tlg b/l3kernel/testfiles/m3expl001.tlg
index 75273d8..bce94d6 100644
--- a/l3kernel/testfiles/m3expl001.tlg
+++ b/l3kernel/testfiles/m3expl001.tlg
@@ -3748,6 +3748,8 @@ Defining \__fp_invalid_operation_o:fw on line ...
Defining \__fp_error:nnnn on line ...
Defining \__fp_error:nnfn on line ...
Defining \__fp_error:nffn on line ...
+Defining \exp_args:Nnfff on line ...
+Defining \__fp_error:nfff on line ...
Defining message LaTeX/kernel/unknown-fpu-exception on line ...
Defining message LaTeX/kernel/unknown-fpu-trap-type on line ...
Defining message LaTeX/kernel/fp-flow on line ...
@@ -4069,11 +4071,13 @@ Defining \fp_step_function:nnnN on line ...
Defining \exp_args:Nnnnc on line ...
Defining \fp_step_function:nnnc on line ...
Defining \__fp_step:wwwN on line ...
+Defining \__fp_step_fp:wwwN on line ...
Defining \__fp_step:NnnnnN on line ...
Defining \__fp_step:NfnnnN on line ...
Defining \fp_step_inline:nnnn on line ...
Defining \fp_step_variable:nnnNn on line ...
Defining \__fp_step:NNnnnn on line ...
+Defining message LaTeX/kernel/fp-step-tuple on line ...
Defining message LaTeX/kernel/fp-bad-step on line ...
Defining message LaTeX/kernel/fp-tiny-step on line ...
Defining \__fp_minmax_o:Nw on line ...
diff --git a/l3kernel/testfiles/m3expl001.uptex.tlg b/l3kernel/testfiles/m3expl001.uptex.tlg
index f1cd87d..19b856b 100644
--- a/l3kernel/testfiles/m3expl001.uptex.tlg
+++ b/l3kernel/testfiles/m3expl001.uptex.tlg
@@ -3748,6 +3748,8 @@ Defining \__fp_invalid_operation_o:fw on line ...
Defining \__fp_error:nnnn on line ...
Defining \__fp_error:nnfn on line ...
Defining \__fp_error:nffn on line ...
+Defining \exp_args:Nnfff on line ...
+Defining \__fp_error:nfff on line ...
Defining message LaTeX/kernel/unknown-fpu-exception on line ...
Defining message LaTeX/kernel/unknown-fpu-trap-type on line ...
Defining message LaTeX/kernel/fp-flow on line ...
@@ -4069,11 +4071,13 @@ Defining \fp_step_function:nnnN on line ...
Defining \exp_args:Nnnnc on line ...
Defining \fp_step_function:nnnc on line ...
Defining \__fp_step:wwwN on line ...
+Defining \__fp_step_fp:wwwN on line ...
Defining \__fp_step:NnnnnN on line ...
Defining \__fp_step:NfnnnN on line ...
Defining \fp_step_inline:nnnn on line ...
Defining \fp_step_variable:nnnNn on line ...
Defining \__fp_step:NNnnnn on line ...
+Defining message LaTeX/kernel/fp-step-tuple on line ...
Defining message LaTeX/kernel/fp-bad-step on line ...
Defining message LaTeX/kernel/fp-tiny-step on line ...
Defining \__fp_minmax_o:Nw on line ...
diff --git a/l3kernel/testfiles/m3expl001.xetex.tlg b/l3kernel/testfiles/m3expl001.xetex.tlg
index e531f97..880a875 100644
--- a/l3kernel/testfiles/m3expl001.xetex.tlg
+++ b/l3kernel/testfiles/m3expl001.xetex.tlg
@@ -3758,6 +3758,8 @@ Defining \__fp_invalid_operation_o:fw on line ...
Defining \__fp_error:nnnn on line ...
Defining \__fp_error:nnfn on line ...
Defining \__fp_error:nffn on line ...
+Defining \exp_args:Nnfff on line ...
+Defining \__fp_error:nfff on line ...
Defining message LaTeX/kernel/unknown-fpu-exception on line ...
Defining message LaTeX/kernel/unknown-fpu-trap-type on line ...
Defining message LaTeX/kernel/fp-flow on line ...
@@ -4079,11 +4081,13 @@ Defining \fp_step_function:nnnN on line ...
Defining \exp_args:Nnnnc on line ...
Defining \fp_step_function:nnnc on line ...
Defining \__fp_step:wwwN on line ...
+Defining \__fp_step_fp:wwwN on line ...
Defining \__fp_step:NnnnnN on line ...
Defining \__fp_step:NfnnnN on line ...
Defining \fp_step_inline:nnnn on line ...
Defining \fp_step_variable:nnnNn on line ...
Defining \__fp_step:NNnnnn on line ...
+Defining message LaTeX/kernel/fp-step-tuple on line ...
Defining message LaTeX/kernel/fp-bad-step on line ...
Defining message LaTeX/kernel/fp-tiny-step on line ...
Defining \__fp_minmax_o:Nw on line ...
diff --git a/l3kernel/testfiles/m3expl003.luatex.tlg b/l3kernel/testfiles/m3expl003.luatex.tlg
index 55fd9e8..225117b 100644
--- a/l3kernel/testfiles/m3expl003.luatex.tlg
+++ b/l3kernel/testfiles/m3expl003.luatex.tlg
@@ -3760,6 +3760,8 @@ Defining \__fp_invalid_operation_o:fw on line ...
Defining \__fp_error:nnnn on line ...
Defining \__fp_error:nnfn on line ...
Defining \__fp_error:nffn on line ...
+Defining \exp_args:Nnfff on line ...
+Defining \__fp_error:nfff on line ...
Defining message LaTeX/kernel/unknown-fpu-exception on line ...
Defining message LaTeX/kernel/unknown-fpu-trap-type on line ...
Defining message LaTeX/kernel/fp-flow on line ...
@@ -4081,11 +4083,13 @@ Defining \fp_step_function:nnnN on line ...
Defining \exp_args:Nnnnc on line ...
Defining \fp_step_function:nnnc on line ...
Defining \__fp_step:wwwN on line ...
+Defining \__fp_step_fp:wwwN on line ...
Defining \__fp_step:NnnnnN on line ...
Defining \__fp_step:NfnnnN on line ...
Defining \fp_step_inline:nnnn on line ...
Defining \fp_step_variable:nnnNn on line ...
Defining \__fp_step:NNnnnn on line ...
+Defining message LaTeX/kernel/fp-step-tuple on line ...
Defining message LaTeX/kernel/fp-bad-step on line ...
Defining message LaTeX/kernel/fp-tiny-step on line ...
Defining \__fp_minmax_o:Nw on line ...
diff --git a/l3kernel/testfiles/m3expl003.ptex.tlg b/l3kernel/testfiles/m3expl003.ptex.tlg
index 9e1fea9..2c313fe 100644
--- a/l3kernel/testfiles/m3expl003.ptex.tlg
+++ b/l3kernel/testfiles/m3expl003.ptex.tlg
@@ -3748,6 +3748,8 @@ Defining \__fp_invalid_operation_o:fw on line ...
Defining \__fp_error:nnnn on line ...
Defining \__fp_error:nnfn on line ...
Defining \__fp_error:nffn on line ...
+Defining \exp_args:Nnfff on line ...
+Defining \__fp_error:nfff on line ...
Defining message LaTeX/kernel/unknown-fpu-exception on line ...
Defining message LaTeX/kernel/unknown-fpu-trap-type on line ...
Defining message LaTeX/kernel/fp-flow on line ...
@@ -4069,11 +4071,13 @@ Defining \fp_step_function:nnnN on line ...
Defining \exp_args:Nnnnc on line ...
Defining \fp_step_function:nnnc on line ...
Defining \__fp_step:wwwN on line ...
+Defining \__fp_step_fp:wwwN on line ...
Defining \__fp_step:NnnnnN on line ...
Defining \__fp_step:NfnnnN on line ...
Defining \fp_step_inline:nnnn on line ...
Defining \fp_step_variable:nnnNn on line ...
Defining \__fp_step:NNnnnn on line ...
+Defining message LaTeX/kernel/fp-step-tuple on line ...
Defining message LaTeX/kernel/fp-bad-step on line ...
Defining message LaTeX/kernel/fp-tiny-step on line ...
Defining \__fp_minmax_o:Nw on line ...
diff --git a/l3kernel/testfiles/m3expl003.tlg b/l3kernel/testfiles/m3expl003.tlg
index 75273d8..bce94d6 100644
--- a/l3kernel/testfiles/m3expl003.tlg
+++ b/l3kernel/testfiles/m3expl003.tlg
@@ -3748,6 +3748,8 @@ Defining \__fp_invalid_operation_o:fw on line ...
Defining \__fp_error:nnnn on line ...
Defining \__fp_error:nnfn on line ...
Defining \__fp_error:nffn on line ...
+Defining \exp_args:Nnfff on line ...
+Defining \__fp_error:nfff on line ...
Defining message LaTeX/kernel/unknown-fpu-exception on line ...
Defining message LaTeX/kernel/unknown-fpu-trap-type on line ...
Defining message LaTeX/kernel/fp-flow on line ...
@@ -4069,11 +4071,13 @@ Defining \fp_step_function:nnnN on line ...
Defining \exp_args:Nnnnc on line ...
Defining \fp_step_function:nnnc on line ...
Defining \__fp_step:wwwN on line ...
+Defining \__fp_step_fp:wwwN on line ...
Defining \__fp_step:NnnnnN on line ...
Defining \__fp_step:NfnnnN on line ...
Defining \fp_step_inline:nnnn on line ...
Defining \fp_step_variable:nnnNn on line ...
Defining \__fp_step:NNnnnn on line ...
+Defining message LaTeX/kernel/fp-step-tuple on line ...
Defining message LaTeX/kernel/fp-bad-step on line ...
Defining message LaTeX/kernel/fp-tiny-step on line ...
Defining \__fp_minmax_o:Nw on line ...
diff --git a/l3kernel/testfiles/m3expl003.uptex.tlg b/l3kernel/testfiles/m3expl003.uptex.tlg
index f1cd87d..19b856b 100644
--- a/l3kernel/testfiles/m3expl003.uptex.tlg
+++ b/l3kernel/testfiles/m3expl003.uptex.tlg
@@ -3748,6 +3748,8 @@ Defining \__fp_invalid_operation_o:fw on line ...
Defining \__fp_error:nnnn on line ...
Defining \__fp_error:nnfn on line ...
Defining \__fp_error:nffn on line ...
+Defining \exp_args:Nnfff on line ...
+Defining \__fp_error:nfff on line ...
Defining message LaTeX/kernel/unknown-fpu-exception on line ...
Defining message LaTeX/kernel/unknown-fpu-trap-type on line ...
Defining message LaTeX/kernel/fp-flow on line ...
@@ -4069,11 +4071,13 @@ Defining \fp_step_function:nnnN on line ...
Defining \exp_args:Nnnnc on line ...
Defining \fp_step_function:nnnc on line ...
Defining \__fp_step:wwwN on line ...
+Defining \__fp_step_fp:wwwN on line ...
Defining \__fp_step:NnnnnN on line ...
Defining \__fp_step:NfnnnN on line ...
Defining \fp_step_inline:nnnn on line ...
Defining \fp_step_variable:nnnNn on line ...
Defining \__fp_step:NNnnnn on line ...
+Defining message LaTeX/kernel/fp-step-tuple on line ...
Defining message LaTeX/kernel/fp-bad-step on line ...
Defining message LaTeX/kernel/fp-tiny-step on line ...
Defining \__fp_minmax_o:Nw on line ...
diff --git a/l3kernel/testfiles/m3expl003.xetex.tlg b/l3kernel/testfiles/m3expl003.xetex.tlg
index e531f97..880a875 100644
--- a/l3kernel/testfiles/m3expl003.xetex.tlg
+++ b/l3kernel/testfiles/m3expl003.xetex.tlg
@@ -3758,6 +3758,8 @@ Defining \__fp_invalid_operation_o:fw on line ...
Defining \__fp_error:nnnn on line ...
Defining \__fp_error:nnfn on line ...
Defining \__fp_error:nffn on line ...
+Defining \exp_args:Nnfff on line ...
+Defining \__fp_error:nfff on line ...
Defining message LaTeX/kernel/unknown-fpu-exception on line ...
Defining message LaTeX/kernel/unknown-fpu-trap-type on line ...
Defining message LaTeX/kernel/fp-flow on line ...
@@ -4079,11 +4081,13 @@ Defining \fp_step_function:nnnN on line ...
Defining \exp_args:Nnnnc on line ...
Defining \fp_step_function:nnnc on line ...
Defining \__fp_step:wwwN on line ...
+Defining \__fp_step_fp:wwwN on line ...
Defining \__fp_step:NnnnnN on line ...
Defining \__fp_step:NfnnnN on line ...
Defining \fp_step_inline:nnnn on line ...
Defining \fp_step_variable:nnnNn on line ...
Defining \__fp_step:NNnnnn on line ...
+Defining message LaTeX/kernel/fp-step-tuple on line ...
Defining message LaTeX/kernel/fp-bad-step on line ...
Defining message LaTeX/kernel/fp-tiny-step on line ...
Defining \__fp_minmax_o:Nw on line ...
diff --git a/l3kernel/testfiles/m3fp-logic004.luatex.tlg b/l3kernel/testfiles/m3fp-logic004.luatex.tlg
index a861d3d..49c66d2 100644
--- a/l3kernel/testfiles/m3fp-logic004.luatex.tlg
+++ b/l3kernel/testfiles/m3fp-logic004.luatex.tlg
@@ -49,6 +49,42 @@ of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
+! Undefined control sequence.
+<argument> \LaTeX3 error:
+ Tuple argument in fp_step_... {(0,)}{(1,)}{(3,)}.
+l. ... }
+The control sequence at the end of the top line
+of your error message was never \def'ed. If you have
+misspelled it (e.g., `\hobx'), type `I' and the correct
+spelling (e.g., `I\hbox'). Otherwise just continue,
+and I'll forget about whatever was undefined.
+! Undefined control sequence.
+<argument> \LaTeX3 error:
+ Tuple argument in fp_step_... {(0,)}{1}{2}.
+l. ... }
+The control sequence at the end of the top line
+of your error message was never \def'ed. If you have
+misspelled it (e.g., `\hobx'), type `I' and the correct
+spelling (e.g., `I\hbox'). Otherwise just continue,
+and I'll forget about whatever was undefined.
+! Undefined control sequence.
+<argument> \LaTeX3 error:
+ Tuple argument in fp_step_... {0}{(1,)}{2}.
+l. ... }
+The control sequence at the end of the top line
+of your error message was never \def'ed. If you have
+misspelled it (e.g., `\hobx'), type `I' and the correct
+spelling (e.g., `I\hbox'). Otherwise just continue,
+and I'll forget about whatever was undefined.
+! Undefined control sequence.
+<argument> \LaTeX3 error:
+ Tuple argument in fp_step_... {0}{1}{(2,)}.
+l. ... }
+The control sequence at the end of the top line
+of your error message was never \def'ed. If you have
+misspelled it (e.g., `\hobx'), type `I' and the correct
+spelling (e.g., `I\hbox'). Otherwise just continue,
+and I'll forget about whatever was undefined.
00.10.20.30.40.50.60.70.80.91
10.90.80.70.60.50.40.30.20.10
-10000000000000000000000000000...
diff --git a/l3kernel/testfiles/m3fp-logic004.lvt b/l3kernel/testfiles/m3fp-logic004.lvt
index bb6af41..5e441f9 100644
--- a/l3kernel/testfiles/m3fp-logic004.lvt
+++ b/l3kernel/testfiles/m3fp-logic004.lvt
@@ -1,5 +1,5 @@
%
-% Copyright (C) 2016 LaTeX3 Project
+% Copyright (C) 2016,2018 LaTeX3 Project
%
\documentclass{minimal}
@@ -36,6 +36,11 @@
\fp_step_function:nnnN { -inf } { 1 } { 0 } \test_type:n
\NEWLINE
\fp_step_function:nnnN { 1e16-2 } { 1 } { 1e16+10 } \TYPE
+ \NEWLINE
+ \fp_step_function:nnnN { (0,) } { (1,) } { (3,) } \TYPE
+ \fp_step_function:nnnN { (0,) } { 1 } { 2 } \TYPE
+ \fp_step_function:nnnN { 0 } { (1,) } { 2 } \TYPE
+ \fp_step_function:nnnN { 0 } { 1 } { (2,) } \TYPE
}
\TEST { fp_step_inline }
diff --git a/l3kernel/testfiles/m3fp-logic004.tlg b/l3kernel/testfiles/m3fp-logic004.tlg
index 4aafb93..fae0e19 100644
--- a/l3kernel/testfiles/m3fp-logic004.tlg
+++ b/l3kernel/testfiles/m3fp-logic004.tlg
@@ -49,6 +49,42 @@ of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
+! Undefined control sequence.
+<argument> \LaTeX3 error:
+ Tuple argument in fp_step_... {(0,)}{(1,)}{(3,)}.
+l. ... }
+The control sequence at the end of the top line
+of your error message was never \def'ed. If you have
+misspelled it (e.g., `\hobx'), type `I' and the correct
+spelling (e.g., `I\hbox'). Otherwise just continue,
+and I'll forget about whatever was undefined.
+! Undefined control sequence.
+<argument> \LaTeX3 error:
+ Tuple argument in fp_step_... {(0,)}{1}{2}.
+l. ... }
+The control sequence at the end of the top line
+of your error message was never \def'ed. If you have
+misspelled it (e.g., `\hobx'), type `I' and the correct
+spelling (e.g., `I\hbox'). Otherwise just continue,
+and I'll forget about whatever was undefined.
+! Undefined control sequence.
+<argument> \LaTeX3 error:
+ Tuple argument in fp_step_... {0}{(1,)}{2}.
+l. ... }
+The control sequence at the end of the top line
+of your error message was never \def'ed. If you have
+misspelled it (e.g., `\hobx'), type `I' and the correct
+spelling (e.g., `I\hbox'). Otherwise just continue,
+and I'll forget about whatever was undefined.
+! Undefined control sequence.
+<argument> \LaTeX3 error:
+ Tuple argument in fp_step_... {0}{1}{(2,)}.
+l. ... }
+The control sequence at the end of the top line
+of your error message was never \def'ed. If you have
+misspelled it (e.g., `\hobx'), type `I' and the correct
+spelling (e.g., `I\hbox'). Otherwise just continue,
+and I'll forget about whatever was undefined.
00.10.20.30.40.50.60.70.80.91
10.90.80.70.60.50.40.30.20.10
-10000000000000000000000000000...
More information about the latex3-commits
mailing list