From 96758e813d3e3ff1d03073e8b7badb2535c5ab76 Mon Sep 17 00:00:00 2001 From: Laurent Arnoud Date: Sun, 29 Dec 2019 17:04:27 +0000 Subject: Add error unimplemented (#51) * Add test for unimplemented error * Add UnimplementedElementError exception --- test/test_parser.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') diff --git a/test/test_parser.rb b/test/test_parser.rb index f110a9f..7b692a5 100755 --- a/test/test_parser.rb +++ b/test/test_parser.rb @@ -116,4 +116,10 @@ class TestParser < Test::Unit::TestCase assert_equal("\u0099", data["non-ascii-but-utf8-character"]) end end + + def test_unimplemented_element + assert_raise Plist::UnimplementedElementError do + Plist.parse_xml('Fish & Chips') + end + end end -- cgit v1.2.1