Commit Graph

35 Commits (master)

Author SHA1 Message Date
lernae 011c78e854 Dice: Fixes #3989 Set upper limit on max dice rolls and number of sides per dice (#4078)
* Dice: Fixes #3989 Set upper limit on max dice rolls and number of sides per dice

* Minor correction on naming of constant: MAX_NUM_OF_DICE
2017-04-10 12:08:59 -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
Zach Thompson 73d8f72fc0 Remove id/name from Perl modules and tests 2016-03-18 11:49:33 -06:00
marianosimone c7e6041f0f support - and whitespace in number spelling 2016-03-01 19:56:27 +00:00
marianosimone b8c57b832f use Numericalize for dice trigger 2016-03-01 19:12:48 +00:00
marianosimone a2c3f19b9d support "dices" spelling for dice trigger
fixes #1255 (except for not converting "two" into 2)
2016-02-28 20:05:34 +00:00
Mailkov 8ea250489e fix tests 2016-02-24 16:57:15 +00:00
Mailkov 916964525c fix review 2015-12-29 19:28:09 +00:00
Mailkov 03cf8bbf3f correct Dice.t 2015-12-28 19:32:41 +00:00
W25 ad8e26e463 Fixed errors in Dice tests 2015-01-16 03:45:40 +00:00
Matt Miller da70710f7d EOL: remove trailing whitespace. 2014-10-28 20:36:15 +02:00
Matt Miller f48a4c8ccc Dice: move from inline CSS. 2014-09-10 17:28:30 -04:00
Jason Dorweiler 5fdefc4655 dice: wrap total to new line on mobile 2014-06-09 21:10:23 -04:00
Jason Dorweiler a6c6a1730d dice: fix failing tests 2014-06-02 21:10:50 -04: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
loganom 07ea321941 Dice.t: update tests, update documentation 2014-01-16 21:17:47 -06:00
loganom 3f58edcb9e Dice.t: update tests 2014-01-12 13:42:29 -06:00
loganom e391ce4acf Dice.t: update tests for Dice.pm changes (some html removed) 2014-01-09 16:55:15 -06:00
loganom ca43e5be39 Dice.t: Add new tests and rewrite several for new header/css 2014-01-08 23:01:59 -06:00
loganom 6d820ad3a0 Dice.t: add test 2014-01-07 18:00:56 -06:00
loganom 7dc64a5d4c Dice.t: add new tests and change old ones to reflect modified Dice.pm 2014-01-07 17:48:41 -06:00
loganom b826ac43e0 add tests 2014-01-07 14:24:22 -06:00
Logan McCamon 43860e901b Update Dice.t
missing comma on line 29
I believe this was the offending issue in the Travis CI build 359.1

( no issues passing tests locally? )
2014-01-02 15:24:04 -06:00
loganom d6683eb9a1 added tests for Dice.pm 2014-01-02 14:36:16 -06:00
Dylan Lloyd 21f4cbb94b add then subtract -l/h, and don't sort rolls
discussion at (and closes)
https://github.com/duckduckgo/zeroclickinfo-goodies/issues/198

test case added
2013-08-08 15:12:33 -04:00
Michael Smith a26ddcb514 Update Dice goodie with UTF8 dice (fixes #161) 2013-03-05 10:42:22 -07:00
Matt Lehning ada4d399c3 Added comma's between results 2013-02-11 15:57:56 -05:00
matt lehning 8347023bb0 Forgot to add (random) to some of the results in Dice.pm 2013-01-27 16:16:00 -05:00
matt lehning ca203d83da Changed Coin.pm and Dice.pm to display (random) after results 2013-01-27 16:01:27 -05:00
Michael Smith 5ef2b84a75 fix a dice test 2012-06-27 19:07:01 -06:00
Michael Smith df75004747 fix dice tests, again... 2012-06-11 14:50:11 -06:00
Michael Smith 64c83454b4 fix Dice test 2012-06-01 15:16:49 -06:00
Michael Smith fd85535679 make tests from old queries.txts 2012-05-29 16:40:59 -06: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