Ben Moon
5d99a64f72
Remove 'name' and 'id' from structured answer
2016-03-24 15:12:54 +00:00
Ben Moon
51094ce606
Update Anagrams to use a full template
...
Chose the 'text' template.
Although it sometimes returns a list of items, it doesn't seem like a
list template would fit here. I think the formatting would work out best
with the 'text' template. We'll find out on Beta I guess ;)
2016-03-24 14:53:47 +00:00
Zaahir Moolla
88d49758b6
Merge pull request #2773 from duckduckgo/zt/no-id-name
...
Remove id/name from Perl modules and tests
2016-03-23 14:23:52 -04:00
Zaahir Moolla
5a65e747dc
Merge pull request #2759 from JoshuaRLi/master
...
New JohnCena Goodie
2016-03-21 21:36:39 -04:00
Joshua Li
4d75f0b3cb
Update JohnCena.t
...
Test file updated to match structured answer in .pm file. Thanks for bringing this to my attention, moollaza!
2016-03-21 20:18:07 -04:00
Zach Thompson
77e7248442
Test for all multiple control character sequences failing
...
test for single control character conversions returning
2016-03-20 15:29:03 -06:00
Zach Thompson
e3fa7ad6e1
Remove extra bracket from regex
...
Add test for control characters
2016-03-20 15:06:24 -06:00
Ben Moon
b4d861a24d
Replace hard-coded max_length with dynamic length
2016-03-19 14:42:59 +00:00
Ben Moon
7f94106afa
Replace substitution delimiter with '/'
...
Highlighting issues!
2016-03-19 13:21:15 +00:00
Ben Moon
af67e12223
Display both warnings and errors
...
Display WARNINGS, FAILURES, or both when reporting test results.
2016-03-19 10:16:20 +00:00
Ben Moon
bf3b056862
Update 'val' tests to use appropriate 'val' type
...
For the particular template used; e.g, 'trn' with 'language'.
2016-03-19 10:16:20 +00:00
Ben Moon
c0a64d13be
Only check against base name for ID check
...
So that cheat sheets in folders don't hate on us.
2016-03-19 10:16:20 +00:00
Ben Moon
5c9e825328
Fix handling of arguments
...
This does two things:
1. Allows multiple cheat sheets to be passed as arguments.
2. As a result of implementing the above, this now allows testing of the
language cheat sheets, which were previously untested.
2016-03-19 10:16:20 +00:00
Ben Moon
2ea1cdc4e2
Improve test phrasing
...
Hopefully this should be easier to understand for average use!
2016-03-19 10:16:19 +00:00
Ben Moon
62a771f73f
Update trailing whitespace tests
2016-03-19 10:16:19 +00:00
Ben Moon
db035c8651
Add ID standards test
...
Ensure ID ends with '_cheat_sheet'
2016-03-19 10:16:19 +00:00
Ben Moon
1c1894d40d
Update output to use a 'normalized' amount of dots
...
To make it read nicer!
2016-03-19 10:16:19 +00:00
Ben Moon
054eeb9ed2
Improve test output
...
* Do not print 'testing....' for each test
* Color actual test message based on pass/warn/critical
* Report number of failures
* Do not duplicate the initial print message
* Prevent (AFAICS) tests wrapping incorrectly
2016-03-19 10:16:19 +00:00
Ben Moon
3b164ffaf5
Fix valid JSON test
...
Would use results from previous tests - we don't want that! Would also
fail (completely) if the JSON was invalid.
2016-03-19 10:16:19 +00:00
Ben Moon
a40bfc4ade
Fix indent
...
Happy @zachthompson? ;)
2016-03-19 10:16:19 +00:00
Zach Thompson
73d8f72fc0
Remove id/name from Perl modules and tests
2016-03-18 11:49:33 -06:00
Zaahir Moolla
1f674496b6
Merge pull request #2241 from GuiltyDolphin/markdown-reference
...
Replace MarkdownCheatSheet Goodie with MarkdownReference
2016-03-17 14:57:02 -04:00
Zaahir Moolla
41efeea698
Merge pull request #2714 from duckduckgo/gd/datemath-expand-trigger
...
DateMath: Expand Triggers
2016-03-17 11:59:57 -04:00
Rob Emery
1558937ad1
SubnetCalc: Has the wrong id; which is why the stats aren't showing on duck.co
2016-03-16 20:23:39 +00:00
Joshua Li
d21fe60448
Update JohnCena.t
...
>_> rip in copypaste
2016-03-16 14:09:39 -04:00
JoshuaRLi
f3409a40fa
added john cena
2016-03-16 17:58:22 +00:00
Zaahir Moolla
62d3c2c4d5
Merge pull request #2755 from duckduckgo/gd/zodiac-fix-images
...
Zodiac: Fix broken images
2016-03-15 17:52:24 -04:00
Ben Moon
3cec34feea
Add version to path
2016-03-15 18:57:53 +00:00
Zaahir Moolla
58f82d6b97
Fix failing tests
2016-03-15 14:42:28 -04:00
Ben Moon
24bfc7acc9
Add support for 'add' and 'subtract' forms
2016-03-14 21:58:07 +00:00
Ben Moon
2c78f15d63
Add support for 'what will the date be' form
2016-03-10 20:01:42 +00:00
Zach Thompson
d664839c44
Merge pull request #2723 from duckduckgo/gd/cheatsheets-fix-section-tests
...
CheatSheets: Fix section tests
2016-03-10 12:23:16 -07:00
Ben Moon
526c363e16
Update test output to show all critical failures
...
Rather than just one at the end.
2016-03-10 17:49:36 +00:00
Ben Moon
9a343e1e39
Fix assigned categories not being set correctly
...
Whoops!
2016-03-10 16:45:03 +00:00
Ben Moon
47834bd7d9
Ensure default triggers are always critical
2016-03-10 16:19:34 +00:00
Ben Moon
5f9fa76873
Merge section contents tests
2016-03-10 15:53:41 +00:00
Ben Moon
54d0b7faad
Fix remaining section tests
...
They weren't accounting properly for invalid section values - this fixes
that.
2016-03-10 15:34:14 +00:00
Ben Moon
b752d0d893
Remove redundant %order hash
...
Use %sections with delete to get a hash with the appropriate items.
2016-03-10 15:33:27 +00:00
Zaahir Moolla
be7dbb3f63
Merge pull request #2333 from duckduckgo/gd/update-xs-libs
...
Update use of 'JSON' to 'JSON::MaybeXS'
2016-03-10 10:11:29 -05:00
Rob Emery
fb2156a3c3
Conversions: Updating tests for 坪 with new structure
2016-03-09 21:36:45 +00:00
Rob Emery
db7df67f0a
Merge branch 'master' into mintsoft/conversions/template
2016-03-09 21:28:34 +00:00
Ben Moon
e81f8f5bdb
Move condition assignments into if
2016-03-09 15:29:06 +00:00
Ben Moon
6a45c21e94
Update section tests to report in bulk
...
I.e, they report all bad sections rather than failing on first one.
2016-03-09 15:17:24 +00:00
Ben Moon
e090a9949d
Make section tests case-sensitive
2016-03-09 14:56:50 +00:00
Ben Moon
570fcc8146
Make section tests critical
2016-03-09 14:49:29 +00:00
Ben Moon
064f17488c
Fix section tests
...
Anything that didn't contain alpha chars (and thus have something to
lowercase) was being removed entirely from the sections (causing a
warning), this fixes that.
2016-03-09 14:27:15 +00:00
Rob Emery
954e627e73
Conversions: the ping unit no longer has s appended for values <> 1
2016-03-08 19:47:52 +00:00
Rob Emery
23e1008db0
Conversions: Adding failing test for plural ping(坪)
2016-03-08 19:46:30 +00:00
Rob Emery
ea29a70e79
Merge remote-tracking branch 'heycam/conversions-ping' into mintsoft/conversions/ping
2016-03-08 19:45:22 +00:00
Ben Moon
3fba984c4b
Merge pull request #2652 from marianosimone/support_dices_in_dice_trigger
...
support "dices" spelling for dice trigger
2016-03-08 16:59:49 +00:00