Commit Graph

26 Commits (0975a379a6b9491dd1a5758ff8279dd9e4e8e2d9)

Author SHA1 Message Date
NaveenKarippai e6adaed99e Fix goodie subtitle data format
There was a whitespace character shown on goodie result' subtitle data field.
This could be fixed by changing subtitle data return result.
2016-05-24 21:01:38 +00:00
NaveenKarippai c95d84fb9b Refactor code module and test suite
There were some test cases which did not follow the ISO date format
suggested by the community. The test suite should be refactored and
some test cases should be added.

* removed whitespace characters on test suite and code module

* test cases added to suite

See also: #2767
2016-05-24 19:21:52 +00:00
NaveenKarippai 80df78be40 Refactor test suite
There were test cases that are obsolete (duplicate).
This should be refactored to run only test cases that
are relevant on suite.

* keep only relevant test cases

See also: #2767
2016-05-23 19:54:22 +00:00
NaveenKarippai 86ce5a89ae Change date format to ISO8601 format on test suite
It was advised to change to test query to ISO8601 format
on test suite for DaysBetween goodie.

* changed query date format to ISO8601 format

See also: #2767
2016-05-22 17:02:22 +00:00
NaveenKarippai ff7baf5f8e Convert DaysBetween 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 temporary
workaround.

* change to 'text' template for structured_answer object

* refactored test suite

Re: #2767
2016-05-22 00:08:06 +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
Bujiraso 5f5f4c7b2e DaysBetween - Added another trigger 2015-09-18 22:32:32 +00:00
Bujiraso 3cd63bf9c6 DaysBetween: Changed some tests 2015-07-15 13:15:26 +00:00
Bujiraso 096fd0ffce Dates role now parses relative terms from today 2015-07-12 13:54:27 +00:00
Bujiraso d45f03a0d8 Fixed Dates role to copy an object before using it 2015-07-12 02:20:24 +00:00
Bujiraso e953dfbfd1 DaysBetween - Added a few more triggers 2015-07-04 15:44:55 +00: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 d8f710d4e8 DaysBetween: add structured answer 2014-11-15 21:33:00 +02:00
Matt Miller da70710f7d EOL: remove trailing whitespace. 2014-10-28 20:36:15 +02:00
Matt Miller 5f9ab6573f DaysBetween: expand query-space like WorkdaysBetween. 2014-08-31 16:36:40 -04:00
Rob Emery 76e0e7b9fb DaysBetween: Rejecting invalid dates with extra characters and ensuring output is always ordered 2014-08-28 19:01:08 +01:00
Rob Emery 801dbf022d DaysBetween: Layout fixes 2014-08-11 23:10:16 +01:00
Matt Miller a9ed413e29 DaysBetween.t: demonstrate expanded date triggers.
Now that it's using the role, there are more options for how to enter
the dates between.  Including using erratic mixed formats!
2014-08-10 17:14:25 -04:00
Rob Emery 40e760fd2e DatesRole/DaysBetween: Switching to use the new DatesRole 2014-08-10 21:45:19 +01: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
Michael Smith acc27ea809 fix variable scoping in DaysBetween 2012-04-21 18:13:32 -06:00
Michael Smith 2a4ca0d9eb more tests for daysbetween, change trigger to start 2012-04-21 17:00:52 -06:00
Dylan Lloyd 8457e79201 updated tests for DaysBetween 2012-04-21 17:59:02 -04:00
Dylan Lloyd 76a5791df3 added DaysBetween test 2012-04-21 17:34:10 -04:00