Help for this page

Select Code to Download


  1. or download this
    use Test::More tests => 1;
    
    ...
    my $expected = "some/file/path/here";
    
    is( get_a_filename(), $expected );
    
  2. or download this
    use Test::FilePath tests => 1;
    
    filepath_is( "some/path", "some\path" );
    
  3. or download this
    my @expected = qw{ some file path here };
    is( get_a_filename(), File::Spec->join( @expected ) );
    
  4. or download this
    my $expected = "some/file/path/here";
    filepath_is( "some:file:path:here", $expected );