Commit Graph

25 Commits (master)

Author SHA1 Message Date
Rasika Pohankar 51dafeaa31 Remove periods from titles, subtitles and plaintext responses (#3569)
* Remove periods from titles, subtitles and plaintext responses

* Update test files

* Remove concatenation

* Remove repeated tests from Cusip test file
2016-09-06 11:15:19 +01:00
rpohankar 2a4af36b04 Correct indentation for structured answer. 2016-05-19 18:58:53 +00:00
rpohankar 39b1e710bf Pass values for verb and weekdays_plurality from build_test, fix indentation. 2016-05-19 17:31:17 +00:00
rpohankar 9b42820f4b Remove extra white spaces. 2016-05-19 08:22:54 +00:00
rpohankar e06a56c2c9 Update WeekdaysBetween to use full template. 2016-05-19 08:18:35 +00: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
Chris Wilson 3a5171f184 Fix Tests for ABC, AspectRatio, DaysBetween, Sort, WeekdaysBetween, WorkdaysBetween 2015-01-10 01:18:15 +11: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 5457d4ec62 Goodies Templates: update some goodies for auto-template usage.
Testing these in duckpan will depend upon the changes in that repository
being integrated.
2014-11-15 21:32:59 +02:00
Matt Miller da70710f7d EOL: remove trailing whitespace. 2014-10-28 20:36:15 +02:00
Matt Miller 68fc7c8dec Set explicit caching everywhere.
This explicity sets the caching behavior for all goodies. Goodies which
did not have caching behavior set in their package have had it added.
Similarly for the tests.

This resulted in a number of changes for caching behavior, mostly
moving towards more frequent caching.

I identified three cases where goodies should not be cached. They are when
the result depends upon:

- some random element,
- the time of day or year (as with relative dates), or
- the location of the requesting user

In all other cases, I presumed that the goodies were sufficiently
deterministic in their output to warrant caching.
2014-09-27 10:35:17 -04:00
Aamir Khan d7b9dce9b9 apparently I couldn't see two spaces! 2014-08-30 20:52:17 +05:30
Aamir Khan eae1a30658 ahh, missed th output format 2014-08-30 20:31:49 +05:30
Aamir Khan 3539c80184 Added test case for primary_example_query 2014-08-30 15:09:09 +05:30
Aamir Khan e0324c377e Merge remote-tracking branch 'upstream/master'
Conflicts:
	lib/DDG/Goodie/WeekdaysBetween.pm
	t/WeekdaysBetween.t
2014-08-29 11:04:05 +05:30
Aamir Khan 92156f0f64 test cases modified 2014-08-26 23:52:35 +05:30
Rob Emery 9c9227f754 Weekdays & WorkdaysBetween: Removing Time::Piece 2014-08-18 21:06:00 +01:00
Rob Emery 030a2f6ec4 WeekdaysBetween: Converting to use DatesRole 2014-08-10 22:26:27 +01:00
Aamir Khan 04f11f634b added 'week days from' in trigger words 2014-07-08 03:37:06 +05:30
Aamir Khan 913bf623bd more test cases 2014-07-08 03:33:45 +05:30
Aamir Khan a50f87be36 fix : missed , 2014-07-08 03:26:17 +05:30
Aamir Khan 08b2eb1623 more test cases 2014-07-08 03:23:10 +05:30
Aamir Khan caf0b91a2c get_dates from workdays.pm 2014-07-08 03:07:39 +05:30
Aamir Khan adbfd4b271 return 0 weekdays in case of same day instead of nothing 2014-04-29 20:39:33 +05:30