[latex3-commits] [l3svn] r7383 - Add testfiles

noreply at latex-project.org noreply at latex-project.org
Mon Jul 17 01:15:19 CEST 2017


Author: bruno
Date: 2017-07-17 01:15:18 +0200 (Mon, 17 Jul 2017)
New Revision: 7383

Added:
   trunk/l3trial/xfont/testfiles/
   trunk/l3trial/xfont/testfiles/l3font001.lvt
   trunk/l3trial/xfont/testfiles/l3font001.tlg
Log:
Add testfiles

(From 2011!) They were just lying around on my computer, not sure why
since they seem to pass fine.  This commit does not mean I'm planning
to touch xfont.


Added: trunk/l3trial/xfont/testfiles/l3font001.lvt
===================================================================
--- trunk/l3trial/xfont/testfiles/l3font001.lvt	                        (rev 0)
+++ trunk/l3trial/xfont/testfiles/l3font001.lvt	2017-07-16 23:15:18 UTC (rev 7383)
@@ -0,0 +1,40 @@
+%
+% Copyright (C) 2011 LaTeX3 Project
+%
+
+\documentclass{minimal}
+\input{regression-test}
+
+\RequirePackage{expl3}
+\RequirePackage{l3font}
+
+\begin{document}
+\START
+\AUTHOR{Bruno Le Floch}
+\ExplSyntaxOn
+
+\OMIT
+\box_new:N \l_foo_hbox
+\cs_new_protected_nopar:Npn \test:nnn #1 #2 #3
+  {
+    \tl_if_empty:nTF {#2}
+      { \fontface_set:Nn \l_foo_font {#1} }
+      { \fontface_set_at:Nnn \l_foo_font {#1} {#2} }
+    \cs_show:N \l_foo_font
+    \fontface_if_null:NT \l_foo_font { \ERROR }
+    \l_foo_font % \fontface_use:N ?
+    \hbox_set:Nn \l_foo_hbox {#3}
+    \tex_showbox:D \l_foo_hbox
+  }
+\TIMO
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\TEST{fontface_set}{
+  \test:nnn { cmr10  } { } {a~fi~b}
+  \test:nnn { cmti10 } { } {a~fi~b}
+  \test:nnn { cmr10  } { 5pt } {a~fi~b}
+  \test:nnn { cmti10 } { 5pt } {a~fi~b}
+}
+
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+\END
\ No newline at end of file


Property changes on: trunk/l3trial/xfont/testfiles/l3font001.lvt
___________________________________________________________________
Added: svn:eol-style
   + native

Added: trunk/l3trial/xfont/testfiles/l3font001.tlg
===================================================================
--- trunk/l3trial/xfont/testfiles/l3font001.tlg	                        (rev 0)
+++ trunk/l3trial/xfont/testfiles/l3font001.tlg	2017-07-16 23:15:18 UTC (rev 7383)
@@ -0,0 +1,59 @@
+This is a generated file for the LaTeX (2e + expl3) validation system.
+Don't change this file in any respect.
+Author: Bruno Le Floch
+============================================================
+TEST 1: fontface_set
+============================================================
+> \l_foo_font=select font cmr10.
+<recently read> }
+l. ...}
+> \box72=
+\hbox(6.94444+0.0)x22.77782
+.\l_foo_font a
+.\glue 3.33333 plus 1.66666 minus 1.11111
+.\l_foo_font ^^L (ligature fi)
+.\glue 3.33333 plus 1.66666 minus 1.11111
+.\l_foo_font b
+! OK.
+\test:nnn ..._hbox {#3}\tex_showbox:D \l_foo_hbox 
+l. ...}
+> \l_foo_font=select font cmti10.
+<recently read> }
+l. ...}
+> \box72=
+\hbox(6.94444+1.94444)x22.48872
+.\l_foo_font a
+.\glue 3.57774 plus 1.53333 minus 1.0222
+.\l_foo_font ^^L (ligature fi)
+.\glue 3.57774 plus 1.53333 minus 1.0222
+.\l_foo_font b
+! OK.
+\test:nnn ..._hbox {#3}\tex_showbox:D \l_foo_hbox 
+l. ...}
+> \l_foo_font=select font cmr10 at 5.0pt.
+<recently read> }
+l. ...}
+> \box72=
+\hbox(3.47221+0.0)x11.38889
+.\l_foo_font a
+.\glue 1.66666 plus 0.83333 minus 0.55556
+.\l_foo_font ^^L (ligature fi)
+.\glue 1.66666 plus 0.83333 minus 0.55556
+.\l_foo_font b
+! OK.
+\test:nnn ..._hbox {#3}\tex_showbox:D \l_foo_hbox 
+l. ...}
+> \l_foo_font=select font cmti10 at 5.0pt.
+<recently read> }
+l. ...}
+> \box72=
+\hbox(3.47221+0.97221)x11.24434
+.\l_foo_font a
+.\glue 1.78886 plus 0.76666 minus 0.5111
+.\l_foo_font ^^L (ligature fi)
+.\glue 1.78886 plus 0.76666 minus 0.5111
+.\l_foo_font b
+! OK.
+\test:nnn ..._hbox {#3}\tex_showbox:D \l_foo_hbox 
+l. ...}
+============================================================


Property changes on: trunk/l3trial/xfont/testfiles/l3font001.tlg
___________________________________________________________________
Added: svn:eol-style
   + native



More information about the latex3-commits mailing list