[latex3-commits] [l3svn] r6268 - Add tests for getting/showing arg spec (fixes #286 completely)

noreply at latex-project.org noreply at latex-project.org
Mon Nov 16 02:03:31 CET 2015


Author: bruno
Date: 2015-11-16 02:03:31 +0100 (Mon, 16 Nov 2015)
New Revision: 6268

Modified:
   trunk/l3packages/xparse/testfiles/xparse004.lvt
   trunk/l3packages/xparse/testfiles/xparse004.tlg
Log:
Add tests for getting/showing arg spec (fixes #286 completely)


Modified: trunk/l3packages/xparse/testfiles/xparse004.lvt
===================================================================
--- trunk/l3packages/xparse/testfiles/xparse004.lvt	2015-11-16 01:02:58 UTC (rev 6267)
+++ trunk/l3packages/xparse/testfiles/xparse004.lvt	2015-11-16 01:03:31 UTC (rev 6268)
@@ -140,4 +140,24 @@
     \foo [ [ { bar } ] ] { baz }
   }
 
+%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+
+\TEST { Get~and~show~argument~spec }
+  {
+    \OMIT
+    \DeclareDocumentCommand { \null } { } { }
+    \DeclareDocumentCommand { \foo } { >{\SplitList{;}} m +o g } { }
+    \DeclareDocumentEnvironment { nullenv } { } { } { }
+    \DeclareDocumentEnvironment { fooenv } { v D{$}{$} l u{!} } { } { }
+    \TIMO
+    \GetDocumentCommandArgSpec { \null } \TYPE { | \ArgumentSpecification | }
+    \ShowDocumentCommandArgSpec { \null }
+    \GetDocumentCommandArgSpec { \foo } \TYPE { | \ArgumentSpecification | }
+    \ShowDocumentCommandArgSpec { \foo }
+    \GetDocumentEnvironmentArgSpec { nullenv } \TYPE { | \ArgumentSpecification | }
+    \ShowDocumentEnvironmentArgSpec { nullenv }
+    \GetDocumentEnvironmentArgSpec { fooenv } \TYPE { | \ArgumentSpecification | }
+    \ShowDocumentEnvironmentArgSpec { fooenv }
+  }
+
 \END

Modified: trunk/l3packages/xparse/testfiles/xparse004.tlg
===================================================================
--- trunk/l3packages/xparse/testfiles/xparse004.tlg	2015-11-16 01:02:58 UTC (rev 6267)
+++ trunk/l3packages/xparse/testfiles/xparse004.tlg	2015-11-16 01:03:31 UTC (rev 6268)
@@ -448,3 +448,23 @@
 ( )(baz)
 ([{bar}])(baz)
 ============================================================
+============================================================
+TEST 9: Get and show argument spec
+============================================================
+||
+> \ArgumentSpecification=.
+<recently read> }
+l. ...  }
+|>{\SplitList {;}}m+og|
+> \ArgumentSpecification=>{\SplitList {;}}m+og.
+<recently read> }
+l. ...  }
+||
+> \ArgumentSpecification=.
+<recently read> }
+l. ...  }
+|vD{$}{$}lu{!}|
+> \ArgumentSpecification=vD{$}{$}lu{!}.
+<recently read> }
+l. ...  }
+============================================================



More information about the latex3-commits mailing list