From 6cc159bebdc47041ae122b11bd0725ac885a27e1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= <mpg@elzevir.fr>
Date: Sat, 21 May 2011 12:22:14 +0200
Subject: attr: add test for \unsetluatexattribute

(test is failing now as reported by Dohyun Kim)
---
 luatexbase-attr.dtx | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'luatexbase-attr.dtx')

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')}
-- 
cgit v1.2.3

