Ben Moon
a18639549b
Merge pull request #3126 from duckduckgo/mintsoft/week-template
...
Week: Switching to text template
2016-05-23 11:42:19 +01:00
Ben Moon
ee46903a00
Merge pull request #3131 from duckduckgo/mintsoft/percentof-template
...
PercentOf: Switching to text template
2016-05-23 11:38:18 +01:00
Rob
341ed286af
Password: Switching to text template
2016-05-22 22:14:58 +01:00
Rob
2141d1f880
PercentOf: Switching to text template
2016-05-22 22:04:48 +01:00
Rob
34ff108ac1
Pi: Switching to text template
2016-05-22 21:56:46 +01:00
Rob
e73e4cd868
Coin: Switching to text template
2016-05-22 21:36:07 +01:00
Rob
d6ba3fe753
TwelveOclock: Switching to text template
2016-05-22 21:24:53 +01:00
Rob
261d18d9be
Week: Switching to text template
2016-05-22 21:18:13 +01:00
Rob
3c2936c6c6
ParseCron: Switching to text template
2016-05-22 21:08:09 +01:00
Rob
8981ffe50c
TimezoneConverter: Switching to text template
2016-05-22 20:55:37 +01:00
rgaul
447c4cfef9
Make changes per review
2016-05-22 19:37:26 +00:00
Rob
ba8fe158bf
Sort: Convert to text template
2016-05-22 20:37:21 +01:00
Rob
3346ded4ba
SHA3: Test updates and cleanup
2016-05-22 20:28:11 +01:00
Rob
b1c8f29cd5
SHA3: Switching to text template
2016-05-22 20:09:14 +01:00
Rob
8091fa7917
MagicEightBall: There's a chance it'll output the html output for one line containing a ' so I've made the regex match both
2016-05-22 19:54:09 +01: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
rgaul
da36876f42
Update Sha Goodie to text template
2016-05-22 05:37:32 +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
msingletary
6eb63bfed8
Add binary operators OR,AND,XOR,NOT
2016-05-21 09:40:45 +00:00
jonk1993
889e45906e
added a couple tests
2016-05-21 00:06:34 +00:00
jonk1993
84ad168f61
merged with master
2016-05-20 23:59:21 +00:00
jonk1993
d119b0bad3
Added tests, updated examples in Base.pm
2016-05-20 16:55:22 +00:00
Caine Tighe
e63792b261
DuckDuckGoodie: update link.:
2016-05-20 09:47:16 -04:00
Ben Moon
6c8b74cf0e
Add tests for example queries
2016-05-20 13:51:05 +01:00
Ben Moon
d07d944ff0
Expand triggers (even more)
2016-05-20 13:47:12 +01:00
Ben Moon
34286dbecd
Add more triggers
2016-05-20 13:12:33 +01:00
Ben Moon
50f2aa6426
Add support for basic ranges
...
E.g., `shuffle a..z`, `shuffle 1..7`.
2016-05-20 12:51:52 +01:00
Ben Moon
b550ec9852
Add support for word lists
...
E.g., `1 and 2 and 3, and 4`
2016-05-20 12:04:06 +01:00
Ben Moon
777c661d9b
Turn off caching
...
Whoops - we don't want to cache random results!
2016-05-20 11:35:04 +01:00
Rob Emery
9fff0ab427
Merge pull request #3107 from rasikapohankar/indentation
...
WeekdaysBetween: Correct indentation for structured answer
2016-05-19 23:21:32 +01:00
Caine Tighe
b91f4f4a03
t/DuckDuckGo.t: update test.
2016-05-19 16:32:17 -04:00
rpohankar
2a4af36b04
Correct indentation for structured answer.
2016-05-19 18:58:53 +00:00
Caine Tighe
5343f46935
Merge pull request #3088 from duckduckgo/nilnilnil/yahoo-owned-server
...
DDG::Goodie::DuckDuckGo: Initial DNS delegation explanation.
2016-05-19 14:48:02 -04:00
Caine Tighe
fe2d8f2612
t/DuckDuckGo.t: update yahoo tests.
2016-05-19 14:38:49 -04:00
Ben Moon
4e7dbbf1a5
Merge pull request #3075 from rasikapohankar/workdays_between
...
WorkdaysBetween: Convert to full template
2016-05-19 19:25:52 +01:00
rpohankar
1cda7e29ab
Pass verb and singular or plural workdays from build_test.
2016-05-19 17:47:18 +00:00
Ben Moon
b6d01fa0b6
Merge pull request #3103 from duckduckgo/mintsoft/Rot13-template
...
Rot13: Converting to text template
2016-05-19 18:40:00 +01:00
Ben Moon
8a1f0b0320
Merge pull request #3104 from rasikapohankar/weekdays_between
...
WeekdaysBetween: Convert to full template
2016-05-19 18:38:42 +01:00
Ben Moon
8fc3a9f78d
Merge pull request #3094 from duckduckgo/mintsoft/Passphrase-template
...
Passphrase: Converting to text template
2016-05-19 18:35:35 +01:00
Ben Moon
09326d14a6
Merge pull request #3093 from duckduckgo/mintsoft/Paper-template
...
Paper: Converting to text template
2016-05-19 18:34:20 +01:00
Ben Moon
fcd4b6ae31
Merge pull request #3105 from duckduckgo/mintsoft/Scramble-template
...
Scramble: Switching to text template
2016-05-19 18:33:28 +01:00
rpohankar
39b1e710bf
Pass values for verb and weekdays_plurality from build_test, fix indentation.
2016-05-19 17:31:17 +00:00
Ben Moon
5c2b6ced39
Merge pull request #3102 from duckduckgo/mintsoft/Roman-template
...
Roman: Switching to text template
2016-05-19 18:31:15 +01:00
Ben Moon
e9165bbbae
Merge pull request #3095 from duckduckgo/mintsoft/Phonealphabet-template
...
PhoneAlphabet: Converting to text template
2016-05-19 18:30:28 +01:00
Ben Moon
a312e0e4a6
Merge pull request #3101 from duckduckgo/mintsoft/RIPEMD-template
...
RIPEMD: Converting to text template
2016-05-19 18:28:37 +01:00
Ben Moon
e9a0118df6
Merge pull request #3097 from duckduckgo/mintsoft/Rafl-template
...
Rafl: Switching to text template
2016-05-19 18:25:02 +01:00
Ben Moon
69eb193abf
Merge pull request #3099 from duckduckgo/mintsoft/esreveR-template
...
Reverse: Converting to text template
2016-05-19 18:21:42 +01:00
Ben Moon
c37398e421
Merge pull request #3100 from duckduckgo/mintsoft/ReverseComplement-template
...
ReverseComplement: Convert to text template
2016-05-19 18:08:51 +01:00
Rob Emery
347cf6e552
Wavelength: Minor test cleanup; removing logic from the wrapper in favour of declaring the intention in the test input
2016-05-19 13:05:32 +01:00
Rob Emery
31bdb5574b
WaveLength: Switching to text template
2016-05-19 13:00:40 +01:00
Rob Emery
386616d2d9
Scramble: Switching to text template
2016-05-19 12:51:53 +01: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
Rob Emery
8a1b15f858
Rot13: Converting to text template
2016-05-18 23:23:28 +01:00
Rob Emery
62faa0c3ce
Roman: Switching to text template
2016-05-18 23:13:31 +01:00
Rob Emery
d4544d84bd
RIPEMD: Switching to text template
2016-05-18 23:01:51 +01:00
Rob Emery
729a5ff09b
RIPEMD: Converting to text template
2016-05-18 22:57:54 +01:00
Rob Emery
893ede356b
ReverseComplement: Small tidy up
2016-05-18 22:21:20 +01:00
Rob Emery
3c152febc2
ReverseComplement: Switching to text template
2016-05-18 22:20:30 +01:00
Rob Emery
f8d20e524b
Reverse: Converting to text template
2016-05-18 21:05:35 +01:00
Rob Emery
1ccc31c175
RC4: Converting to text template
2016-05-18 20:57:34 +01:00
Rob Emery
7c245df230
Rafl: Switching to text template
2016-05-18 20:47:44 +01:00
rpohankar
0efda236b0
Convert dates to ISO8601 format, remove cases related to Dates Role.
2016-05-18 16:21:22 +00:00
Ben Moon
4e0fd3b590
Merge pull request #3091 from duckduckgo/mintsoft/paleo-template
...
PaleoIngredientCheck: Converting to text template
2016-05-18 15:29:45 +01:00
Rob Emery
ebd008fe04
PhoneAlphabet: Converting to text template
2016-05-18 13:26:47 +01:00
Rob Emery
c4b4eab11f
Passphrase: Converting to text template
2016-05-18 13:17:25 +01:00
Rob Emery
e1313735f7
Paper: Converting to text template
2016-05-18 13:06:17 +01:00
Rob Emery
bd1e3afa92
MagicEightBall: Cuddling the sub
2016-05-18 12:43:13 +01:00
Ben Moon
04a6925302
Merge pull request #3067 from duckduckgo/mintsoft/iso639-template
...
ISO639: Converting to text template
2016-05-18 11:59:13 +01:00
Ben Moon
c4879378b9
Merge pull request #3062 from duckduckgo/mintsoft/fibonacci-template
...
Fibonacci: Converting to Text Template
2016-05-18 11:56:56 +01:00
Ben Moon
3db0512635
Morse: Convert to text template ( #3090 )
...
Morse: Converting to text template
2016-05-18 11:52:52 +01:00
Ben Moon
c170b95b9e
Merge pull request #3089 from duckduckgo/mintsoft/MoonPhases
...
Moon Phases: Convert to structured answer
2016-05-18 11:50:25 +01:00
rpohankar
c907934aa8
Remove concatenation from title and response in Weight.pm, modify values passed to build_test in test file.
2016-05-17 20:20:55 +00:00
Rob Emery
463027d896
PaleoIngredientCheck: Converting to text template
2016-05-17 21:18:02 +01:00
Rob Emery
7159e55ab2
Morse: Cuddling the sub
2016-05-17 21:01:59 +01:00
Rob Emery
fff91c565b
MoonPhases: cuddling the sub
2016-05-17 21:01:01 +01:00
Rob Emery
9b55fc2daf
Morse: Removing commented test helpers
2016-05-17 20:55:51 +01:00
Rob Emery
ceec3492ba
Morse: Converting to text template
2016-05-17 20:55:30 +01:00
Rob Emery
39af74d685
MoonPhases: Adding subtitle and cleaning up tests a little
2016-05-17 20:33:57 +01:00
Rob Emery
ce8804804e
MoonPhases: Converting to text template
2016-05-17 20:32:42 +01:00
rpohankar
b48932b0a4
Move common dates to variables, change ambiguous date formats to ISO8601.
2016-05-17 19:17:16 +00:00
rpohankar
202113b250
Update Weight to use the full template.
2016-05-17 17:33:12 +00:00
Rob Emery
24755a1018
MD5: Convert to text template ( #3084 )
2016-05-17 15:18:21 +01:00
Ben Moon
ee8ab3d4e8
Ensure Coin uses Test::Deep for tests
2016-05-17 15:16:14 +01:00
Ben Moon
0e5ddc6983
Merge pull request #2966 from dbech/coin-flip
...
Coin: Triggers on 'coin flip'
2016-05-17 15:14:51 +01:00
rpohankar
13aaca2500
Update WorkdaysBetween to use full template.
2016-05-17 13:58:42 +00:00
Rob Emery
0215fe28ef
MD4: Convert to text template ( #3083 )
2016-05-17 13:14:52 +01:00
Rob Emery
18f197d369
MakeMeASandwich: answer is a reserved data key; switching to result
2016-05-17 12:55:44 +01:00
Rob Emery
5272be68eb
MakeMeASandwich: Template names are based on the IA id
2016-05-17 12:52:46 +01:00
Rob Emery
32002f9c59
MagicEightBall: Test Refactor
2016-05-17 08:14:39 +01:00
Ben Moon
2d5cdf73e5
Merge pull request #3066 from duckduckgo/mintsoft/helpline-template
...
HelpLine: Switching to text template
2016-05-16 22:25:29 +01:00
Rob Emery
ddad985859
MakeMeASandwich: Adding template
2016-05-16 21:48:40 +01:00
Rob Emery
2d841d77d4
MakeMeASandwich: Updating to template answer
2016-05-16 21:47:34 +01:00
Rob Emery
86119c311e
MagicEightBall: Converting to text template
2016-05-16 21:23:54 +01:00
Rob Emery
e6810b754c
HTMLEntitiesDecode: Fixing the actual display; content isn't required for the Text template; also removing html_enc so that things are displayed correctly
2016-05-16 21:02:29 +01:00
Rob Emery
07ecf6867a
HTMLEntitiesDecode: Adding build_test to wrap the test_zci calls
2016-05-16 21:02:29 +01:00
Rob Emery
26ffa0d976
HTMLEntitiesDecode: Swapping out regexes on title for actual test values
2016-05-16 21:02:29 +01:00
Rob Emery
4d46a1e103
HTMLEntitiesDecode: Converting to Text Template
2016-05-16 21:02:28 +01:00
Rob Emery
c76b0bb7e9
ConvertLatLon: Updating tests with new structured_answer
2016-05-16 20:59:40 +01:00
Rob Emery
bf232e70d5
HelpLine: Using Test::Deep
2016-05-16 20:53:04 +01:00
Rob Emery
a8071eb7ed
HelpLine: Updating tests to use Test::Deep and text template
2016-05-16 20:53:04 +01:00
Rob Emery
a3c7fe52fe
MacAddress: Working template and tests
2016-05-16 20:32:50 +01:00
Ben Moon
3b32b27bc8
LeetSpeak: Convert to Text Template ( #3073 )
...
LeetSpeak: Converting to Text Template
2016-05-16 19:52:13 +01:00
rgaul
7e056981e9
Merge remote-tracking branch 'upstream/master' into issue-2002
2016-05-16 16:56:15 +00:00
rgaul
0616988280
Improve unit test code
2016-05-16 16:53:38 +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
Rob Emery
f4119f7fbf
LeetSpeak: Updating tests for text template
2016-05-16 13:18:14 +01:00
Rob Emery
0ca397ab70
Kana: Updating tests for text template
2016-05-16 13:08:20 +01:00
rgaul
f9685a9f25
Convert to structured text template
2016-05-15 23:16:03 +00:00
Rob Emery
8cbcdf66ed
Fibonacci: Refactoring tests
2016-05-15 21:59:15 +01:00
Ben Moon
8eeddb5c19
Merge pull request #3064 from duckduckgo/mintsoft/GenerateMAC-template
...
GenerateMAC: Switching to text template
2016-05-15 20:05:22 +01:00
Rob Emery
58ce9b09c9
Fortune: Switching to text template ( #3063 )
...
* Fortune: Switching to text template
* Fortune: Adding subtitle and using Test::Deep
2016-05-15 20:01:11 +01:00
Rob Emery
0d73da25b2
Jira: Fixing options->group; this should be content
2016-05-15 19:33:20 +01:00
Rob Emery
104b963bca
GenerateMAC: Switching out to use Test::Deep
2016-05-15 19:22:30 +01:00
Rob Emery
5f87fa6b38
JIRA: updating tests for template
2016-05-15 18:50:49 +01:00
Rob Emery
536c21c1eb
Switching JIRA to text template
2016-05-15 18:46:11 +01:00
Rob Emery
057511dc7b
ISO639: Converting to text template
2016-05-15 18:38:40 +01:00
Rob Emery
3349534b76
Factors: Convert to text template ( #3061 )
2016-05-15 18:38:30 +01:00
Rob Emery
fb88949c44
GenerateMAC: Switching tests to Test::Deep and text template
2016-05-15 18:12:51 +01:00
Rob Emery
24b58cddd3
Fibonacci: Extending test coverage around question formats
2016-05-15 17:57:14 +01:00
Rob Emery
8d52252fe0
Fibonacci: Converting to Text Template
2016-05-15 17:54:04 +01:00
Rob Emery
0cc555fe1b
HexToDec: Convert to text template ( #3054 )
...
* HexToDec: Converting to text template
* HexToDec: Refactoring tests
2016-05-15 17:13:24 +01:00
Rob Emery
348df8e526
POTUS: Flipping out to text template ( #3053 )
...
* POTUS: Flipping out to text template
* POTUS: Tests should be calling `build_test` :)
* POTUS: Test refactor
2016-05-14 23:32:11 +01:00
Rob Emery
707350bf90
Combination: Switching to text template ( #3058 )
2016-05-14 23:04:54 +01:00
Rob Emery
0e438ddc08
Uppercase: Converting to text template ( #3057 )
2016-05-14 22:52:17 +01:00
Rob Emery
6a2fdedbf6
Lowercase: Flipping out to Text template ( #3055 )
...
* Lowercase: Flipping out to Text template
2016-05-14 22:46:41 +01:00
Rob Emery
ad089234ae
Titlecase: Converting to text template ( #3056 )
2016-05-14 22:44:23 +01:00
Rob Emery
39b44adc0c
Constants: Switching to customised template
2016-05-14 20:30:39 +01:00
Rob Emery
683018f4a1
Constants: It's crap that the IA currently returns HTML for the plain answer; no remedied
2016-05-14 20:26:09 +01:00
Rob Emery
abd685d3ae
Constants: Switching to text template
2016-05-14 20:21:54 +01:00
Ben Moon
da3c7b26c7
Fix test for real numbers ( #3049 )
...
Wasn't allowing the case for numbers like `1.3e-7`.
2016-05-14 19:14:43 +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
Ben Moon
e271760377
GreatestCommonFactor: Update tests to use 'build_test' ( #3048 )
...
* Update tests to use 'build_test'
* Fix indenting
2016-05-14 18:42:58 +01:00
Roy Kokkelkoren
289948173d
GreatestCommonFactor: Use Math::BigInt & change to text template ( #2990 )
...
* Removed custom GCD function replaced with library function
* Changed view to text template and updated tests
* Cleanup of tests and removed unnecessary code
2016-05-14 18:28:04 +01:00
Ben Moon
0d1c29d08c
Add test for postfix form
2016-05-14 17:17:04 +01:00
Ben Moon
07dc434bf8
Ensure no triggering on empty remainder
2016-05-14 17:15:45 +01:00
Ben Moon
ba3c840566
Ensure we don't trigger if we've nowt to shuffle
...
shuffle xs | length xs <= 1 = xs forall xs
That says it all.
2016-05-14 17:11:50 +01:00
Ben Moon
775c1e0f49
Add Shuffle Instant Answer
...
Allows shuffling of random inputs (mainly lists).
2016-05-14 17:10:31 +01:00
Naveen Karippai
6df517e87a
Convert RandomNumbers to full template goodie ( #3014 )
...
* Convert RandomNumbers to full template
2016-05-14 12:17:47 +01:00
rgaul
0a05b287e7
Fixup regex with unit test validation
2016-05-14 02:29:50 +00:00
Ben Moon
d115e04a95
Add check for IA page existence
...
We check to make sure that an IA page with the correct ID exists.
2016-05-13 18:28:31 +01:00
Zaahir Moolla
58eeb27ea5
Merge pull request #2811 from lamanh/fix_2771
...
Braille: fix for bad triggers #2771
2016-05-12 15:51:46 -07:00
Zach Thompson
1c7e2cca44
Merge pull request #2777 from duckduckgo/gd/cheatsheets-add-ignore
...
CheatSheets: Add 'ignore' attribute
2016-05-12 14:23:38 -06:00
Naveen Karippai
a426dccaf5
Convert CountryCodes to full template goodie ( #3037 )
...
Goodies have full support for templates, and it'd be great
to make sure that 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
See also: Updates CountryCodes Goodie Re: #2767
2016-05-12 14:23:28 +01:00
Ben Moon
3a0e90fb62
Merge pull request #3019 from duckduckgo/mintsoft/conversions/plurals
...
Conversions: Harmonise unit definitions
2016-05-11 20:42:26 +01:00
Rob Emery
10eac5a798
Conversions: Adding tests around singular for mmHg
2016-05-11 20:03:11 +01:00
Rob Emery
54ef078da5
Conversions: Singular test for ton of TNT
2016-05-11 18:54:16 +01:00
Rob Emery
3831d2bf71
Conversions: Fixing tnt vs TNT for @guiltydolphin
2016-05-11 18:45:02 +01:00
Rasika Pohankar
9b5d96c5c3
Update ValarMorghulis to use full template. ( #3034 )
2016-05-11 12:43:08 +01:00