[latex3-commits] [l3svn] r7421 - Add test for xfp's inteval
noreply at latex-project.org
noreply at latex-project.org
Sun Aug 6 20:54:57 CEST 2017
Author: bruno
Date: 2017-08-06 20:54:57 +0200 (Sun, 06 Aug 2017)
New Revision: 7421
Modified:
trunk/l3packages/xfp/testfiles/xfp001.lvt
trunk/l3packages/xfp/testfiles/xfp001.tlg
Log:
Add test for xfp's inteval
Modified: trunk/l3packages/xfp/testfiles/xfp001.lvt
===================================================================
--- trunk/l3packages/xfp/testfiles/xfp001.lvt 2017-08-06 17:41:48 UTC (rev 7420)
+++ trunk/l3packages/xfp/testfiles/xfp001.lvt 2017-08-06 18:54:57 UTC (rev 7421)
@@ -20,5 +20,12 @@
\TYPE{|\fpeval{foobar}|}
}
+\TEST{inteval}
+ {
+ \TYPE{|\inteval{123456789+2020202}|}
+ \TYPE{|\inteval{-125/10}|}
+ \TYPE{|\inteval{foobar}|}
+ }
+
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\END
Modified: trunk/l3packages/xfp/testfiles/xfp001.tlg
===================================================================
--- trunk/l3packages/xfp/testfiles/xfp001.tlg 2017-08-06 17:41:48 UTC (rev 7420)
+++ trunk/l3packages/xfp/testfiles/xfp001.tlg 2017-08-06 18:54:57 UTC (rev 7421)
@@ -7,6 +7,11 @@
.
. Defining command \fpeval with sig. 'm' on line ....
.................................................
+.................................................
+. LaTeX info: "xparse/define-command"
+.
+. Defining command \inteval with sig. 'm' on line ....
+.................................................
)
============================================================
TEST 1: fpeval
@@ -33,3 +38,17 @@
and I'll forget about whatever was undefined.
|0|
============================================================
+============================================================
+TEST 2: inteval
+============================================================
+|125476991|
+|-13|
+! Missing number, treated as zero.
+<to be read again>
+ f
+l. ... }
+A number should have been here; I inserted `0'.
+(If you can't figure out why I needed to see a number,
+look up `weird error' in the index to The TeXbook.)
+|0foobar\__int_eval_end: |
+============================================================
More information about the latex3-commits
mailing list