2013-09-05 06:42:42 -07:00
|
|
|
#!/usr/bin/env perl
|
|
|
|
|
|
|
|
use strict;
|
|
|
|
use warnings;
|
|
|
|
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
|
|
|
zci answer_type => 'leetspeak';
|
2013-09-05 07:03:05 -07:00
|
|
|
zci is_cached => 1;
|
2013-09-05 06:42:42 -07:00
|
|
|
|
|
|
|
ddg_goodie_test(
|
2013-09-09 00:12:03 -07:00
|
|
|
[
|
|
|
|
'DDG::Goodie::LeetSpeak'
|
|
|
|
],
|
2013-09-05 06:42:42 -07:00
|
|
|
'leetspeak hello world !' => test_zci('Leet Speak: |-|3|_|_0 \^/0|2|_|) !'),
|
|
|
|
'l33tsp34k hElLo WORlD !' => test_zci('Leet Speak: |-|3|_|_0 \^/0|2|_|) !'),
|
2013-09-09 00:12:03 -07:00
|
|
|
'what is l33t' => test_zci("Leet Speak: \\^/|-|/-\\'][' 15"),
|
|
|
|
'leet speak leetspeak' => test_zci("Leet Speak: |_33']['5|D3/-\\|<"),
|
|
|
|
'l33t sp34k /!§ ;€' => test_zci("Leet Speak: /!§ ;€"),
|
2013-09-10 17:04:27 -07:00
|
|
|
'l33tsp34k' => undef,
|
2013-09-05 06:42:42 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
done_testing;
|