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;
|
|
|
|
use Test::More;
|
|
|
|
use DDG::Test::Goodie;
|
|
|
|
|
|
|
|
zci answer_type => 'conversion';
|
|
|
|
zci is_cached => 1;
|
|
|
|
|
|
|
|
ddg_goodie_test(
|
|
|
|
[qw(
|
|
|
|
DDG::Goodie::EmToPx
|
|
|
|
)],
|
2012-05-03 07:30:06 -07:00
|
|
|
'10 px to em' => test_zci('There are 0.625 em in 10 px (assuming a 16px font size)'),
|
Added tests for Base64, Dice, EmToPx, FlipText, GoldenRatio, Guid, Periemeter, Roman, SigFigs, TitleCase, Unicode
2012-04-15 16:17:12 -07:00
|
|
|
'10 px to em' => test_zci(qr/0\.625/),
|
2012-05-02 16:24:12 -07:00
|
|
|
'12.2 px in em assuming a 12.2px font size' => test_zci("There is 1 em in 12.2 px (assuming a 12.2px font size)"),
|
2014-02-10 13:24:52 -08:00
|
|
|
'12.2 px in em assuming a 12.2 font size' => test_zci('There are 0.7625 em in 12.2 px (assuming a 16px font size)'),
|
Added tests for Base64, Dice, EmToPx, FlipText, GoldenRatio, Guid, Periemeter, Roman, SigFigs, TitleCase, Unicode
2012-04-15 16:17:12 -07:00
|
|
|
);
|
|
|
|
|
|
|
|
done_testing;
|