summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-05-21 12:22:14 +0200
committerManuel Pégourié-Gonnard <mpg@elzevir.fr>2011-05-21 12:22:14 +0200
commit6cc159bebdc47041ae122b11bd0725ac885a27e1 (patch)
tree80b6253811c89225f4a92c22cbf68c1d8e57c6f2
parent5c2d92ab25c5315ed7cf65a2318d7abaea9f6eed (diff)
downloadluatexbase-6cc159bebdc47041ae122b11bd0725ac885a27e1.tar.gz
attr: add test for \unsetluatexattribute
(test is failing now as reported by Dohyun Kim)
-rw-r--r--luatexbase-attr.dtx2
1 files changed, 2 insertions, 0 deletions
diff --git a/luatexbase-attr.dtx b/luatexbase-attr.dtx
index f5e3093..03653b7 100644
--- a/luatexbase-attr.dtx
+++ b/luatexbase-attr.dtx
@@ -409,7 +409,9 @@ end
%<*testplain,testlatex>
\newluatexattribute\testattr
\setluatexattribute\testattr{1}
+\ifnum\testattr=1 \else \ERROR \fi
\unsetluatexattribute\testattr
+\ifnum\testattr<0 \else \ERROR \fi
\catcode64 11
\luatexbase@directlua{assert(luatexbase.attributes.testattr)}
\luatexbase@directlua{luatexbase.new_attribute('luatestattr')}