#!/usr/bin/env perl
use strict;
use warnings;
use utf8;
use Test::More;
use DDG::Test::Goodie;
zci answer_type => "constants";
zci is_cached => 1;
ddg_goodie_test(
[qw( DDG::Goodie::Constants )],
"Hardy Ramanujan number" => test_zci(
'13 + 123 = 93 + 103',
structured_answer => {
input => [],
operation => 'Hardy Ramanujan Number 1729',
result => "13 + 123 = 93 + 103",
}
),
#without apostrophe
"Avogadros number" => test_zci(
'6.0221415 × 1023 mol-1',
structured_answer => {
input => [],
operation => 'Avogadro\'s Number',
result => '6.0221415 × 1023 mol-1',
}
),
#with apostrophe
"Avogadro's number" => test_zci(
'6.0221415 × 1023 mol-1',
structured_answer => {
input => [],
operation => 'Avogadro\'s Number',
result => '6.0221415 × 1023 mol-1',
}
),
#constant without html (only plain)
"Eulers constant" => test_zci(
'0.577215665',
structured_answer => {
input => [],
operation => 'Euler\'s Constant',
result => '0.577215665',
}
),
"How old is my grandma?" => undef,
"why?" => undef,
);
done_testing;