| 1 |
# This is a test for: |
| 2 |
# https://rt.cpan.org/Ticket/Display.html?id=58848 |
| 3 |
|
| 4 |
use strict; |
| 5 |
use warnings; |
| 6 |
|
| 7 |
use Test::More tests => 1; |
| 8 |
|
| 9 |
use XML::LibXML; |
| 10 |
|
| 11 |
{ |
| 12 |
eval { |
| 13 |
XML::LibXML->new->parse_file('example/thedieline.rss'); |
| 14 |
}; |
| 15 |
|
| 16 |
my $err = $@; |
| 17 |
|
| 18 |
# TEST |
| 19 |
like ("$err", qr{parser error : Input is not proper UTF-8}, |
| 20 |
'Parser error.', |
| 21 |
); |
| 22 |
} |
| 23 |
|
| 24 |
|
| 25 |
=head1 COPYRIGHT & LICENSE |
| 26 |
|
| 27 |
Copyright 2011 by Shlomi Fish |
| 28 |
|
| 29 |
This program is distributed under the MIT (X11) License: |
| 30 |
L<http://www.opensource.org/licenses/mit-license.php> |
| 31 |
|
| 32 |
Permission is hereby granted, free of charge, to any person |
| 33 |
obtaining a copy of this software and associated documentation |
| 34 |
files (the "Software"), to deal in the Software without |
| 35 |
restriction, including without limitation the rights to use, |
| 36 |
copy, modify, merge, publish, distribute, sublicense, and/or sell |
| 37 |
copies of the Software, and to permit persons to whom the |
| 38 |
Software is furnished to do so, subject to the following |
| 39 |
conditions: |
| 40 |
|
| 41 |
The above copyright notice and this permission notice shall be |
| 42 |
included in all copies or substantial portions of the Software. |
| 43 |
|
| 44 |
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
| 45 |
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES |
| 46 |
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
| 47 |
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
| 48 |
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, |
| 49 |
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING |
| 50 |
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR |
| 51 |
OTHER DEALINGS IN THE SOFTWARE. |
| 52 |
|
| 53 |
=cut |