ROBODoc Configuration File/line-endings. [ System tests ]
FUNCTION
ROBODoc should not care about the kind of line-endings that are used. Either cr/lf or cr, or even lf should work without any problem. We test this with two .rc files that have different kind of line-endings.
SOURCE
{ my $source = <<'EOF'; /****f* Test/test * FOO * test ******/ EOF # A rc file with 'unix' line-endings. my $config = read_hexdump( 'TestData/robodoc_unix_rc.xxd' ); add_configuration( "test.rc", $config, 'binary' ); add_source( "test.rc", $source ); mkdocdir(); my ( $out, $err ) = runrobo(qw( --src Src --doc Doc/test --rc Config/test.rc --singledoc --test --nopre )); # expected results: is( $out, '', 'No ouput' ); is( $err, '', '... and no error' ); clean(); # A rc file with 'windows' line-endings. $config = read_hexdump( 'TestData/robodoc_windows_rc.xxd' ); add_configuration( "test.rc", $config, 'binary' ); add_source( "test.rc", $source ); mkdocdir(); ( $out, $err ) = runrobo(qw( --src Src --doc Doc/test --rc Config/test.rc --singledoc --test --nopre )); # expected results: is( $out, '', 'No ouput' ); is( $err, '', '... and no error' ); clean(); }