6 use Test::More 'no_plan';
10 #****h* ROBODoc System Tests/Pipes
12 # Test the usage of pipes.
17 my $pipe_source = <<'EOF';
20 * Only "pipes" which match selected output style are picked up.
21 * |html <CENTER>This will be included in <B>HTML</B> output.</CENTER>
23 * |latex \centerline{This will be included in \LaTeX output}
25 * Space is mandatory following the pipe marker. The following is not a
29 * You should see an equation on the following line:
30 * |html y = x^2 (sorry, plain HTML is not very powerful)
31 * |latex \centerline{$y = x^2$}
33 * How does this look like?
35 * Here comes a multi-line equation array:
36 * |latex \begin{eqnarray}
37 * |latex \frac{\partial u}{\partial \tau} & = & D_u {\nabla}^2 u +
38 * |latex \frac{1}{\epsilon}
39 * |latex \left ( \hat{u}-{\hat{u}}^2-f\, {v} \, \frac{\hat{u}-q}{\hat{u}+q}
40 * |latex \right ) \; , \label{diffspot:1} \\
41 * |latex \frac{\partial v}{\partial \tau} & = & \hat{u}-v \; ,
42 * |latex \label{diffspot:2} \\
43 * |latex \frac{\partial r}{\partial \tau} & = & D_r {\nabla}^2 r \; .
44 * |latex \label{diffspAot:3}
45 * |latex \end{eqnarray}
46 * |html <I>TODO: write this in html</I>
57 #****x* Pipes/latex pipes
59 # Test the use of latex pipes preformatted more.
63 add_source( "test.c", $pipe_source );
65 my ( $out, $err ) = runrobo(
74 is( $out, '', 'No ouput' );
75 is( $err, '', '... and no error' );
76 file_exists_ok( "Doc/test.tex", 'there should be documentation' );