test/misc_test.rb in openwferu-0.9.8 vs test/misc_test.rb in openwferu-0.9.9
- old
+ new
@@ -6,10 +6,12 @@
#
# Sun Oct 29 16:18:25 JST 2006
#
require 'test/unit'
+require 'rexml/document'
+
require 'openwfe/utils'
require 'openwfe/expressions/fe_define'
require 'openwfe/expressions/expressionmap'
#
@@ -66,9 +68,15 @@
#puts a1
assert \
a0.equals(a1),
"dup() utility not working"
+ end
+
+ def test_dup_1
+ d = REXML::Document.new("<document/>")
+ d1 = OpenWFE::fulldup(d)
+ assert d.object_id != d1.object_id
end
private
class A