added todos from bug reports from cpan
[urisagit/File-Slurp.git] / t / append_null.t
CommitLineData
635c7876 1#!/usr/local/bin/perl -w
2
3use strict ;
4
5use Test::More tests => 2 ;
6
7BEGIN{
8 use_ok( 'File::Slurp', qw( read_file write_file append_file ) ) ;
9}
10
11my $data = <<TEXT ;
12line 1
13more text
14TEXT
15
16my $file = 'xxx' ;
17
18unlink $file ;
19
20my $err = write_file( $file, $data ) ;
21append_file( $file, '' ) ;
22
23my $read_data = read_file( $file ) ;
24
25is( $data, $read_data ) ;
26
27
28unlink $file ;