LHC: Limiting overtriggering (#4462)

* HasLHC: Adding failing tests for improper trigger type

* LHC: We want start to limit overtriggering and only if there isn't other information in the query
master
Rob Emery 2017-08-28 23:09:06 +01:00 committed by Zaahir Moolla
parent 9b128b8dbe
commit a46679a254
2 changed files with 3 additions and 3 deletions

View File

@ -8,14 +8,14 @@ use strict;
zci answer_type => 'has_lhcdestroyed_world';
zci is_cached => 1;
triggers any => 'has the large hadron collider destroyed the world',
triggers start => 'has the large hadron collider destroyed the world',
'has the lhc destroyed the world',
'has the large hadron collider destroyed the earth',
'has the lhc destroyed the earth';
# Handle statement
handle remainder => sub {
return unless /^(yet)?$/;
return "Nope.",
structured_answer => {
id => 'has_lhcdestroyed_world',

View File

@ -40,7 +40,7 @@ ddg_goodie_test(
'has the lhc destroyed the earth yet' => test_zci(@no),
'has the lhc destroyed the earth' => test_zci(@no),
'in science fiction has the large hadron collider destroyed the world' => undef,
'large hadron collider' => undef,
'could the large hadron collider destroyed the world' => undef,
'will the large hadron collider destroy the earth' => undef