Added tests for Base64, Dice, EmToPx, FlipText, GoldenRatio, Guid, Periemeter, Roman, SigFigs, TitleCase, Unicode
2012-04-15 16:17:12 -07:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
2014-02-10 13:24:52 -08:00
|
|
|
use utf8;
|
Added tests for Base64, Dice, EmToPx, FlipText, GoldenRatio, Guid, Periemeter, Roman, SigFigs, TitleCase, Unicode
2012-04-15 16:17:12 -07:00
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
|
|
|
zci answer_type => 'flip_text';
|
2014-10-07 04:13:19 -07:00
|
|
|
zci is_cached => 1;
|
Added tests for Base64, Dice, EmToPx, FlipText, GoldenRatio, Guid, Periemeter, Roman, SigFigs, TitleCase, Unicode
2012-04-15 16:17:12 -07:00
|
|
|
|
|
|
|
ddg_goodie_test(
|
2014-10-07 04:13:19 -07:00
|
|
|
[qw( DDG::Goodie::FlipText)],
|
|
|
|
'flip text test' => test_zci(
|
|
|
|
"\x{0287}\x{0073}\x{01DD}\x{0287}",
|
|
|
|
structured_answer => {
|
|
|
|
input => ['test'],
|
2015-01-09 00:46:54 -08:00
|
|
|
operation => 'Flip text',
|
2014-10-07 04:13:19 -07:00
|
|
|
result => 'ʇsǝʇ'
|
|
|
|
}
|
|
|
|
),
|
|
|
|
'mirror text test' => test_zci(
|
|
|
|
"\x{0287}\x{0073}\x{01DD}\x{0287}",
|
|
|
|
structured_answer => {
|
|
|
|
input => ['test'],
|
2015-01-09 00:46:54 -08:00
|
|
|
operation => 'Flip text',
|
2014-10-07 04:13:19 -07:00
|
|
|
result => 'ʇsǝʇ'
|
|
|
|
}
|
|
|
|
),
|
|
|
|
'flip text my sentence' => test_zci(
|
|
|
|
'ǝɔuǝʇuǝs ʎɯ',
|
|
|
|
structured_answer => {
|
|
|
|
input => ['my sentence'],
|
2015-01-09 00:46:54 -08:00
|
|
|
operation => 'Flip text',
|
2014-10-07 04:13:19 -07:00
|
|
|
result => 'ǝɔuǝʇuǝs ʎɯ'
|
|
|
|
}
|
|
|
|
),
|
|
|
|
'mirror text text' => test_zci(
|
|
|
|
'ʇxǝʇ',
|
|
|
|
structured_answer => {
|
|
|
|
input => ['text'],
|
2015-01-09 00:46:54 -08:00
|
|
|
operation => 'Flip text',
|
2014-10-07 04:13:19 -07:00
|
|
|
result => 'ʇxǝʇ'
|
|
|
|
}
|
|
|
|
),
|
Added tests for Base64, Dice, EmToPx, FlipText, GoldenRatio, Guid, Periemeter, Roman, SigFigs, TitleCase, Unicode
2012-04-15 16:17:12 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
done_testing;
|