File: 24-bad-content.t

package info (click to toggle)
libxml-atom-perl 0.23-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 420 kB
  • ctags: 264
  • sloc: perl: 3,357; xml: 663; makefile: 51
file content (25 lines) | stat: -rw-r--r-- 384 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
use strict;
use Test::More tests => 2;

use XML::Atom::Content;


my $stuff = "\x{1234}";

{
    my $content = XML::Atom::Content->new(Version => 0.3);
    $content->body($stuff);
    isnt $content->mode, 'base64';
}

{
    my $content = XML::Atom::Content->new(Version => 0.3);
    eval { doo(); }; # this set $@
    $content->body($stuff);
    isnt $content->mode, 'base64';
}