summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-05-21 18:56:53 +0200
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-05-21 19:00:51 +0200
commit75aa1857395604c55dde548d91cc8452f47f3e5f (patch)
tree6ce72feef128db841e28e91148e1196de9c38419
parent596857319aaf8bc485a00b8f3c98d1395b3e4c1d (diff)
downloadluatexbase-75aa1857395604c55dde548d91cc8452f47f3e5f.tar.gz
adapt test-luatex4
-rw-r--r--Makefile2
-rw-r--r--TODO4
-rw-r--r--luatex.dtx24
3 files changed, 14 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index 7cd55ca..f399fd3 100644
--- a/Makefile
+++ b/Makefile
@@ -146,7 +146,7 @@ check-luatex: install-runfiles
$(TESTENV) luatex --interaction=batchmode test-luatex1.tex >/dev/null
$(TESTENV) lualatex --interaction=batchmode test-luatex2.tex >/dev/null
#$(TESTENV) lualatex --interaction=batchmode test-luatex3.tex >/dev/null
- #$(TESTENV) lualatex --interaction=batchmode test-luatex4.tex >/dev/null
+ $(TESTENV) lualatex --interaction=batchmode test-luatex4.tex >/dev/null
$(TESTENV) luatex --interaction=batchmode test-luatex5.tex >/dev/null
$(CTAN_ZIP): $(SOURCE) $(COMPILED) $(TDS_ZIP)
diff --git a/TODO b/TODO
index 682a120..ccedffd 100644
--- a/TODO
+++ b/TODO
@@ -1,15 +1,13 @@
Next actions
------------
-- pass the test suite of luatex.sty
-- Coordinate release with Heiko.
+- Coordinate release with Heiko (luatex-loader?)
test suite
----------
- regression checks on the results of the tests (sed+diff the log)
- add debug messages to be used in the test suite?
-- import test files from luatex.sty
compat
------
diff --git a/luatex.dtx b/luatex.dtx
index 27dc35c..aeae949 100644
--- a/luatex.dtx
+++ b/luatex.dtx
@@ -501,7 +501,7 @@ See source file '\inFileName' for licence and contact information.
% \begin{macrocode}
\begin{qstest}{CatcodeTableNumStack}{CatcodeTableNumStack}
\def\TestStack#1{%
- \Expect*{\LuT@NumStack}{#1}%
+ \Expect*{\lltxb@cctb@numstack}{#1}%
}%
\TestStack{0}%
\PushCatcodeTableNumStack
@@ -517,7 +517,7 @@ See source file '\inFileName' for licence and contact information.
\PopCatcodeTableNumStack
\TestStack{0}%
\def\TestWarning{Missing empty stack warning}%
- \def\@PackageWarning#1#2{\def\TestWarning{empty stack}}%
+ \def\PackageWarning#1#2{\def\TestWarning{empty stack}}%
\PopCatcodeTableNumStack
\TestStack{0}%
\Expect*{\TestWarning}{empty stack}%
@@ -554,7 +554,7 @@ See source file '\inFileName' for licence and contact information.
\TestStack{0}%
\begingroup
\def\TestError{Missing error}%
- \def\@PackageError#1#2#3{%
+ \def\errmessage#1{%
\def\TestError{Empty stack}%
}%
\DecCatcodeTableStack
@@ -571,7 +571,7 @@ See source file '\inFileName' for licence and contact information.
\def\TestStacks#1#2#3{%
\Expect*{\the\luatexcatcodetable}{#1}%
\Expect*{\the\CatcodeTableStack}{#2}%
- \Expect*{\LuT@NumStack}{#3}%
+ \Expect*{\lltxb@cctb@numstack}{#3}%
}%
\TestStacks{0}{0}{0}%
\catcode`\|=7 %
@@ -591,14 +591,14 @@ See source file '\inFileName' for licence and contact information.
\newattribute\TestAttr
\Expect*{\meaning\TestAttr}%
*{\string\attribute\number\allocationnumber}%
- \Expect*{\the\allocationnumber}{0}%
+ \Expect*{\the\allocationnumber}{1}%
\begingroup
\newattribute\TestAttr
- \Expect*{\the\allocationnumber}{1}%
+ \Expect*{\the\allocationnumber}{2}%
\endgroup
- \Expect*{\the\allocationnumber}{0}%
- \Expect*{\meaning\TestAttr}*{\string\attribute1}%
- \Expect*{\the\TestAttr}*{\number\LuT@UnsetAttributeValue}%
+ \Expect*{\the\allocationnumber}{1}%
+ \Expect*{\meaning\TestAttr}*{\string\attribute2}%
+ \Expect*{\the\TestAttr}*{\number\lltxb@attr@unsetvalue}%
\def\Test#1{%
\setattribute\TestAttr{#1}%
\Expect*{\the\TestAttr}{#1}%
@@ -608,12 +608,12 @@ See source file '\inFileName' for licence and contact information.
\Test{-1}%
\Test{123}%
\unsetattribute\TestAttr
- \Expect*{\the\TestAttr}*{\number\LuT@UnsetAttributeValue}%
+ \Expect*{\the\TestAttr}*{\number\lltxb@attr@unsetvalue}%
\begingroup
- \Expect*{\the\TestAttr}*{\number\LuT@UnsetAttributeValue}%
+ \Expect*{\the\TestAttr}*{\number\lltxb@attr@unsetvalue}%
\Test{1234}%
\endgroup
- \Expect*{\the\TestAttr}*{\number\LuT@UnsetAttributeValue}%
+ \Expect*{\the\TestAttr}*{\number\lltxb@attr@unsetvalue}%
\end{qstest}
% \end{macrocode}
%