2013-11-20 16:52:48 -08:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
|
|
|
zci answer_type => 'Latex';
|
2013-11-21 12:57:03 -08:00
|
|
|
zci is_cached => 0;
|
2013-11-20 16:52:48 -08:00
|
|
|
|
|
|
|
ddg_goodie_test(
|
|
|
|
[qw(
|
|
|
|
DDG::Goodie::Latex
|
|
|
|
)],
|
2013-11-21 13:18:20 -08:00
|
|
|
"latex integral" => test_zci('Command: \int_lowerbound^upperbound
|
|
|
|
Example Usage: $\int_a^b f(x)dx$',
|
|
|
|
html => '<i>Command:</i> \int_lowerbound^upperbound <br> <i>Example Usage:</i> $\int_a^b f(x)dx$',
|
|
|
|
heading => 'Latex command (integral)'),
|
|
|
|
|
|
|
|
"Latex integral" => test_zci('Command: \int_lowerbound^upperbound
|
|
|
|
Example Usage: $\int_a^b f(x)dx$',
|
|
|
|
html => '<i>Command:</i> \int_lowerbound^upperbound <br> <i>Example Usage:</i> $\int_a^b f(x)dx$',
|
|
|
|
heading => 'Latex command (integral)'),
|
|
|
|
|
|
|
|
"tex integral" => test_zci('Command: \int_lowerbound^upperbound
|
|
|
|
Example Usage: $\int_a^b f(x)dx$',
|
2013-11-21 12:57:03 -08:00
|
|
|
html => '<i>Command:</i> \int_lowerbound^upperbound <br> <i>Example Usage:</i> $\int_a^b f(x)dx$',
|
|
|
|
heading => 'Latex command (integral)'),
|
2013-11-20 16:52:48 -08:00
|
|
|
);
|
2013-11-21 04:32:11 -08:00
|
|
|
|
2013-11-20 16:52:48 -08:00
|
|
|
done_testing;
|