zeroclickinfo-goodies/t
Zaahir Moolla 3309758c1d Calculator: More fixes -- Trigger regex contained a bug (#3898)
* Restrict some other stuff

* Don't require digit

* Restrict multiple ops to two or less

* reject empty parens/multiple ops

* No @, or $ not followed by a number or .

* combine char class

* add more negative tests

* Add ops back, case-insensitive subs, require two ops again

* Case-insensitive on multiple ops too

* Allow leading negatives

* Move the leading neg sub

* Better regex for hex input

* update tests
2017-01-28 14:07:00 -05:00
..
00-roles/Parse Remove unnecessary helper 2016-07-11 15:57:43 +01:00
CheatSheets Update links and phrasing 2016-07-18 12:57:02 -04:00
00-roles.t Allow lowercase trailing TZs 2016-02-03 19:31:34 +00:00
ABC.t Update Goodies to use Test::Deep 2016-05-16 14:07:57 +01:00
AltCalendars.t Merge pull request #2898 from gaulrobe/altcalendars-cleanup 2016-06-07 11:18:45 -04:00
Anagram.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
AspectRatio.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Atbash.t Remove use of html_enc (#3571) 2016-08-31 19:58:57 +01:00
Average.t Remove use of 'html_enc' (#3567) 2016-09-03 15:36:12 +01:00
BPMToMs.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
BRT.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Base.t fixed spelling mistake 2016-05-26 05:29:33 +00:00
Base64.t Remove use of 'html_enc' (#3567) 2016-09-03 15:36:12 +01:00
BashPrimaryExpressions.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
BeamMeUpScotty.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Bin2Unicode.t Update tests 2016-06-08 15:27:54 -06:00
Binary.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
BinaryLogic.t Add binary operators OR,AND,XOR,NOT 2016-05-21 09:40:45 +00:00
BirthStone.t Merge pull request #3030 from duckduckgo/gd/birth-stone-cleanup 2016-06-23 17:10:51 -04:00
Bitsum.t Remove use of 'html_enc' (#3567) 2016-09-03 15:36:12 +01:00
BloodDonor.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Braille.t Remove use of html_enc (#3571) 2016-08-31 19:58:57 +01:00
CaesarCipher.t Remove use of html_enc (#3571) 2016-08-31 19:58:57 +01:00
CalcRoots.t Merge pull request #2775 from duckduckgo/gd/calc-roots-full-template 2016-06-08 19:10:20 -04:00
Calculator.t Calculator: More fixes -- Trigger regex contained a bug (#3898) 2017-01-28 14:07:00 -05:00
CalendarConversion.t Update test builder to use more idiomatic Perl 2016-06-04 18:19:10 +01:00
CalendarToday.t Update Goodies to use Test::Deep 2016-05-16 14:07:57 +01:00
CallingCodes.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
CamelCase.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Chars.t Remove use of 'html_enc' (#3567) 2016-09-03 15:36:12 +01:00
Chess960.t Update Goodies to use Test::Deep 2016-05-16 14:07:57 +01:00
ChineseToPinyin.t add test to check if special pinyin like v3 can be converted correctly 2016-07-05 05:29:09 +00:00
ChineseZodiac.t Merge pull request #2855 from marianosimone/Sloff/ChineseZodiac_Icons 2016-06-22 10:55:20 -04:00
ChordDiagrams.t ChordDiagrams: Using Test::Deep 2016-06-09 21:32:55 +01:00
CoffeeToWaterRatio.t CoffeeToWaterRatio: Removing : from the default answer as it looks unsightly 2016-06-09 12:44:33 +01:00
Coin.t Coin: Switching to text template 2016-05-22 21:36:07 +01:00
ColorCodes.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
ColorPicker.t ColorPicker: Fixing over eager triggering (#3789) 2016-12-01 01:08:11 -05:00
Combination.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Constants.t Merge pull request #3051 from duckduckgo/mintsoft/constants-template 2016-06-08 15:27:45 -04:00
Conversions.t Conversions: Adding support for n'm" format (#3891) 2017-01-26 09:42:27 -05:00
ConvertLatLon.t ConvertLatLon: Updating tests with new structured_answer 2016-05-16 20:59:40 +01:00
Countdown.t Add commented results for tests on time queries, to be uncommented after #2810 is merged. 2016-06-06 06:04:20 +00:00
CountryCodes.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
CryptHashCheck.t Update Goodies to use Test::Deep 2016-05-16 14:07:57 +01:00
CssAnimations.t CSS Animations Goodie (#3424) 2016-12-15 15:09:55 -05:00
CssColors.t Added meta tag in CssColors.t 2016-10-11 16:18:41 +00:00
CurrencyIn.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Cusip.t Remove periods from titles, subtitles and plaintext responses (#3569) 2016-09-06 11:15:19 +01:00
DHL.t Update Goodies to use Test::Deep 2016-05-16 14:07:57 +01:00
DateMath.t Merge pull request #2805 from duckduckgo/gd/datemath-after-before 2016-05-23 13:09:04 +01:00
DayOfWeek.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
DaysBetween.t Remove periods from titles, subtitles and plaintext responses (#3569) 2016-09-06 11:15:19 +01:00
Dessert.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Dewey.t Dewey: Should not react to the query "dewey decimal system" without numbers etc 2016-07-04 05:50:29 +01:00
Dice.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
DuckDuckGo.t Merge pull request #3331 from rahiel/fix-tor-link 2016-12-04 11:15:07 -05:00
DurationCalculator.t Fix failing tests 2016-07-01 10:00:00 +00:00
EmToPx.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
EmailValidator.t add test 2016-11-14 17:31:04 +02:00
FIGlet.t Remove use of html_enc (#3571) 2016-08-31 19:58:57 +01:00
Factors.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
FedEx.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
FenViewer.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Fibonacci.t Changed response to strings, was hanging on large Fibonacci. 2016-06-21 05:52:02 +00:00
FirefoxOS.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
FlipText.t Add failing test to demonstrate trigger change 2016-06-27 17:57:33 -04:00
Fortune.t Update Goodies to use Test::Deep 2016-05-16 14:07:57 +01:00
Frequency.t Frequency: Refactor tests to remove duplication 2016-07-09 10:49:57 +00:00
FrequencySpectrum.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
GUID.t Merge remote-tracking branch 'upstream/master' into issue-2002 2016-05-16 16:56:15 +00:00
Game2048.t Update tests to use Test::Deep (#3249) 2016-06-14 20:50:58 +01:00
GenerateMAC.t Changed template group back to 'text' 2016-06-28 14:10:37 +00:00
GibberishGenerator.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
GoldenRatio.t Use structured_answer for GoldenRatio 2017-01-02 20:28:53 +00:00
GreatestCommonFactor.t Remove periods from titles, subtitles and plaintext responses (#3569) 2016-09-06 11:15:19 +01:00
HKDK.t Update Goodies to use Test::Deep 2016-05-16 14:07:57 +01:00
HTMLEntitiesDecode.t 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
HTMLEntitiesEncode.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
HelpLine.t HelpLine: Remove obsolete test cases and cache 2016-06-14 19:47:53 +00:00
HexToASCII.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
HexToDec.t Update Goodies to use Test::Deep 2016-05-16 14:07:57 +01:00
HistoricalEvents.t ensure we handle upper case queries properly 2016-12-21 14:48:49 -05:00
HtmlBeautifier.t New Html beautifier Goodie (#3658) 2016-10-21 10:18:11 -04:00
IDN.t Remove use of html_enc (#3571) 2016-08-31 19:58:57 +01:00
IPS.t Update Goodies to use Test::Deep 2016-05-16 14:07:57 +01:00
ISO639.t Merge pull request #3067 from duckduckgo/mintsoft/iso639-template 2016-05-18 11:59:13 +01:00
IndependenceDay.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
JSONValidator.t JSONValidator: Improve title/subtitle to clarify usage (#3648) 2016-10-07 09:23:47 -04:00
Jira.t Merge pull request #3069 from duckduckgo/mintsoft/jira-template 2016-06-08 15:32:10 -04:00
JohnCena.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
JsBeautifier.t New JS Beautifier Goodie (#3640) 2016-10-21 10:24:15 -04:00
JsMinify.t fix test 2016-07-21 10:59:16 -04:00
Kana.t Merge pull request #3072 from duckduckgo/mintsoft/kana-template 2016-05-23 12:47:37 +01:00
KernelTaint.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
LaserShip.t Update Goodies to use Test::Deep 2016-05-16 14:07:57 +01:00
Latex.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
LeapYear.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
LeetSpeak.t LeetSpeak: Convert to Text Template (#3073) 2016-05-16 19:52:13 +01:00
Loan.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
LoremIpsum.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Lowercase.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Luhn.t Removed full stop 2016-07-20 17:53:27 +00:00
MD4.t Remove use of html_enc (#3571) 2016-08-31 19:58:57 +01:00
MD5.t Remove use of html_enc (#3571) 2016-08-31 19:58:57 +01:00
MacAddress.t Changed template group back to 'text' 2016-06-28 14:10:37 +00:00
MagicEightBall.t Fix MagicEightBall tests (#3138) 2016-05-23 12:24:10 +01:00
MakeMeASandwich.t MakeMeASandwich: Each item in the array should be either a string or an object, it can't be an object containing text: string 2016-05-24 20:22:03 +01:00
MarkdownReference.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
MilitaryRank.t Moved logic to insert no insignia image into perl module. Removed javascript file. 2016-06-21 11:20:54 +00:00
Minecraft.t second test file fix 2016-07-19 18:06:27 +00:00
MoonPhases.t MoonPhases: cuddling the sub 2016-05-17 21:01:01 +01:00
Morse.t Morse: Cuddling the sub 2016-05-17 21:01:59 +01:00
NLetterWords.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
NameDays.t Revert "NameDays: Rename Czech_Republic to Czechia, new official short name" 2016-12-08 18:36:01 -05:00
NoteFrequency.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
OnionAddress.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
POTUS.t Remove periods from titles, subtitles and plaintext responses (#3569) 2016-09-06 11:15:19 +01:00
PaleoIngredientCheck.t PaleoIngredientCheck: Converting to text template 2016-05-17 21:18:02 +01:00
Palindrome.t Update Goodies to use Test::Deep 2016-05-16 14:07:57 +01:00
Paper.t Paper: Converting to text template 2016-05-18 13:06:17 +01:00
Parcelforce.t ParcelForce: Adding failing test for keen triggering 2016-07-15 21:51:25 +01:00
ParseCron.t ParseCron: Switching to text template 2016-05-22 21:08:09 +01:00
Passphrase.t Passphrase: Converting to text template 2016-05-18 13:17:25 +01:00
Password.t Password: Splitting into 2x regexes 2016-05-23 22:09:36 +01:00
PercentError.t Update Goodies to use Test::Deep 2016-05-16 14:07:57 +01:00
PercentOf.t PercentOf: Switching to text template 2016-05-22 22:04:48 +01:00
Perimeter.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
PeriodicTable.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
PhoneAlphabet.t PhoneAlphabet: Converting to text template 2016-05-18 13:26:47 +01:00
Phonetic.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Pi.t Pi: Refactoring and removing sexy tabs in favour of kludgy spaces 2016-05-23 12:47:42 +01:00
PigLatin.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Poker.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
PrimeFactors.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
PrimeNumber.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
PrivateNetwork.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
PublicDNS.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
RIPEMD.t Remove use of html_enc (#3571) 2016-08-31 19:58:57 +01:00
Rafl.t Rafl: Switching to text template 2016-05-18 20:47:44 +01:00
Randagram.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
RandomDate.t Remove html_enc() from RandomDate.pm (#3599) 2016-09-05 10:40:02 +01:00
RandomName.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
RandomNumber.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Rc4.t RC4: Tabs to spaces 2016-05-24 17:40:46 +01:00
Regexp.t Remove use of html_enc (#3571) 2016-08-31 19:58:57 +01:00
ResistorColors.t Update Goodies to use Test::Deep 2016-05-16 14:07:57 +01:00
Reverse.t Reverse: Converting to text template 2016-05-18 21:05:35 +01:00
ReverseComplement.t ReverseComplement: Small tidy up 2016-05-18 22:21:20 +01:00
ReverseResistorColours.t Remove periods from titles, subtitles and plaintext responses (#3569) 2016-09-06 11:15:19 +01:00
RgbColor.t RgbColor: Add support for color titles (#3574) 2016-09-26 12:38:31 -04:00
Roman.t Add tests for 'X to roman numerals' triggers. 2016-09-03 13:16:44 +00:00
Rot13.t Rot13: Converting to text template 2016-05-18 23:23:28 +01:00
RouterPasswords.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
RubiksCubePatterns.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
SHA3.t Remove use of `html_enc` in Sha3 (#3578) 2016-09-04 16:43:40 +01:00
SassToCss.t New SASS to CSS IA (#3635) 2016-10-26 13:25:45 -04:00
Scramble.t Scramble: Switching to text template 2016-05-19 12:51:53 +01:00
ScreenResolution.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
SecurityAddons.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Sha.t Make changes per review 2016-05-22 19:37:26 +00:00
Shruggie.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Shuffle.t Add tests for example queries 2016-05-20 13:51:05 +01:00
SigFigs.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
SolarSystem.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Sort.t Adapt test suite for checking single query input 2016-05-29 16:16:31 +00:00
Stardate.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Stopwatch.t Stopwatch: add chronometer (fixes #3843) 2017-01-20 15:49:36 -05:00
SubnetCalc.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Sudoku.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
SumOfNaturalNumbers.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
SunInfo.t Remove periods from titles, subtitles and plaintext responses (#3569) 2016-09-06 11:15:19 +01:00
Teredo.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Timediff.t Update locale-format test to use ISO8601 format 2016-06-04 15:18:09 +01:00
TimezoneConverter.t Templates type should be group 2016-06-18 01:14:45 +00:00
Tips.t Remove print 2016-06-11 15:14:19 +00:00
TitleCase.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
TwelveOclock.t Remove periods from titles, subtitles and plaintext responses (#3569) 2016-09-06 11:15:19 +01:00
UN.t Update Goodies to use Test::Deep 2016-05-16 14:07:57 +01:00
UPS.t Update Goodies to use Test::Deep 2016-05-16 14:07:57 +01:00
URLDecode.t URLDecode: Remove HTML encoding from output text 2016-08-24 19:32:36 +00:00
URLEncode.t URLEncode: Remove HTML Encoding of output text 2016-08-24 19:29:20 +00:00
USPS.t Update Goodies to use Test::Deep 2016-05-16 14:07:57 +01:00
UltimateAnswer.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Unicode.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
UnicodeFuzzySearch.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Unicornify.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Unidecode.t Update Goodies to use Test::Deep 2016-05-16 14:07:57 +01:00
UnixPermissions.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
UnixTime.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Uppercase.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Uptime.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
VIN.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
ValarMorghulis.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Wavelength.t 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
Week.t Remove periods from titles, subtitles and plaintext responses (#3569) 2016-09-06 11:15:19 +01:00
WeekdaysBetween.t Remove periods from titles, subtitles and plaintext responses (#3569) 2016-09-06 11:15:19 +01:00
Weight.t Remove periods from titles, subtitles and plaintext responses (#3569) 2016-09-06 11:15:19 +01:00
WhereAmI.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
WorkdaysBetween.t Remove periods from titles, subtitles and plaintext responses (#3569) 2016-09-06 11:15:19 +01:00
ZappBrannigan.t Fix newline at end of file 2016-05-16 14:19:39 +01:00
Zodiac.t Fix newline at end of file 2016-05-16 14:19:39 +01:00