diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/oberdiek/test/zref-test1.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/oberdiek/test/zref-test1.tex | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/zref-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/zref-test1.tex index 314bf384d27..4c8f5450294 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/zref-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/zref-test1.tex @@ -28,9 +28,10 @@ %% This work consists of the main source file zref.dtx %% and the derived files %% zref.sty, zref.pdf, zref.ins, zref.drv, zref-base.sty, -%% zref-abspage.sty, zref-counter.sty, zref-dotfill.sty, -%% zref-hyperref.sty, zref-lastpage.sty, zref-marks.sty, -%% zref-nextpage.sty, zref-perpage.sty, zref-runs.sty, +%% zref-abspage.sty, zref-abspos.sty, zref-counter.sty, +%% zref-dotfill.sty, zref-hyperref.sty, zref-lastpage.sty, +%% zref-marks.sty, zref-nextpage.sty, zref-pageattr.sty, +%% zref-pagelayout.sty, zref-perpage.sty, zref-runs.sty, %% zref-savepos.sty, zref-thepage.sty, zref-titleref.sty, %% zref-totpages.sty, zref-user.sty, zref-xr.sty, %% zref-example.tex, zref-example-lastpage.tex, @@ -41,25 +42,35 @@ \NeedsTeXFormat{LaTeX2e} \nofiles \documentclass{article} -\usepackage{zref-base}[2010/04/23] +\usepackage{zref-base}[2010/05/01] \usepackage{qstest} \IncludeTests{*} \LogTests{log}{*}{*} \makeatletter +\def\ExpectList#1#2{% + \expandafter\expandafter\expandafter\Expect + \expandafter\expandafter\expandafter{\csname Z@L@#1\endcsname}{#2}% +} \begin{qstest}{localaddprop}{localaddprop} - \Expect*{\Z@L@main}*{{default}{page}}% + \ExpectList{main}{\default\page}% + \Expect{undefined}*{\meaning\foobar}% \zref@newprop{foobar}{FOO}% + \Expect{undefined}*{\meaning\foobar}% \zref@newlist{alist}% - \Expect*{\Z@L@alist}{}% + \ExpectList{alist}{}% \begingroup \zref@localaddprop{main}{foobar}% - \Expect*{\Z@L@main}{{default}{page}{foobar}}% + \Expect{undefined}*{\meaning\foobar}% + \ExpectList{main}{\default\page\foobar}% \zref@localaddprop{alist}{page}% - \Expect*{\Z@L@alist}{{page}}% + \ExpectList{alist}{\page}% \endgroup - \Expect*{\Z@L@main}*{{default}{page}}% - \Expect*{\Z@L@alist}{}% + \ExpectList{main}{\default\page}% + \ExpectList{alist}{}% + \zref@addprop{alist}{foobar}% + \ExpectList{alist}{\foobar}% + \Expect{undefined}*{\meaning\foobar}% \end{qstest} \@@end \endinput |