Commit Graph

13 Commits (master)

Author SHA1 Message Date
Zaahir Moolla e32ffdcfaf Add failing test to demonstrate trigger change 2016-06-27 17:57:33 -04:00
Ben Moon 83b9bbd6b7 Fix newline at end of file 2016-05-16 14:19:39 +01:00
Ben Moon 5f85cf4121 Update Goodies to use Test::Deep
* Ensure Test::Deep is imported.

* Replace '-ANY-' with ignore()

* Replace regexes with re(...)
2016-05-16 14:07:57 +01:00
Naveen Karippai af18492b8a Convert simple structured to full template goodie (#3000)
* Convert simple structured to full template goodie

Goodies have full support for templates, and it'd be great to make sure all
Goodies use full templates. The "simple structured_answer" was provided
as a way to get goodies using basic templates before they had full template
support.

* change to 'text' template for structured_answer object

* refactored test suite

* added alias and removed encode

See also: Updates FlipText Goodie Re: #2767

IA: https://duck.co/ia/view/flip_text

* Remove unnecessary trigger words on flipText goodie

There were trigger words added to flipText goodie which may not be
used or confuse the search results. This should be removed.

* extra triggers removed

See also: Updates FlipText Goodie Re: #2767

* Indent code on FlipText goodie

It would be easier to eyes in the long run to understand
code when it's properly indented.

* code indented on .pm and .t
2016-05-14 19:00:12 +01:00
Chris Wilson 2f11d6cc76 Update Binary IA to Uppercase. Fix All Test Cases for Uppercase Changes. 2015-01-09 19:46:54 +11:00
Matt Miller 37c69da9c7 FlipText: use structured answer. 2014-11-15 21:33:00 +02:00
jagtalon 19b7425488 FlipText: Add "text" to the trigger word.
"flip", "mirror", "spin", and "rotate" are all very common words, and this instant answer comes up often for queries such as "flip flops". While we don't have a way of setting individual goodies with low priority (all goodies have high priority at the moment), it's important that we control the query space of each one. So in this case, adding a "text" as a requirement will prevent it from triggering on "flip flop", "back flip", etc.
2014-06-03 18:38:32 +00:00
Eric Johnson 9c29b27338 Added tests for example queries which are not currently tested.
Conflicts:

	t/TimezoneConverter.t
2014-02-10 21:36:14 +00:00
yegg 32cb9e2914 Fix FlipText test. 2012-05-16 21:19:19 -04:00
Robert Picard 0722a20ccc Flip and mirror both mirror now
There aren't hex codes for characters that aren't mirrored, i.e. just
flipped upside-down, so the "flip" trigger wasn't really working.
2012-05-14 20:52:54 -04:00
Michael Smith 72f6533286 fix emtopx and fliptext tests 2012-05-03 08:30:06 -06:00
Robert Picard 0e04078a5e Update FlipText so it doesn't reverse with the "flip" trigger. Now it includes a "mirror" trigger which will flip and reverse it. 2012-05-02 17:38:13 -04:00
Dylan Lloyd d2bde79efc Added tests for Base64, Dice, EmToPx, FlipText, GoldenRatio, Guid, Periemeter, Roman, SigFigs, TitleCase, Unicode 2012-04-15 19:17:12 -04:00