Commit Graph

19 Commits (240961711e98072160e6030607ccb760ab4d4697)

Author SHA1 Message Date
Rob Emery 56c5ea4a5e Goodies: Enabling `use strict` on all goodies 2015-02-22 20:09:29 +00:00
Chris Wilson 2f11d6cc76 Update Binary IA to Uppercase. Fix All Test Cases for Uppercase Changes. 2015-01-09 19:46:54 +11:00
Chris Wilson b2c4be58d0 Update Case for Binary, BirthStone, Calculator, CalendarConversion, CallingCodes, Chars 2015-01-09 18:56:33 +11:00
Matt Miller 8c06d6deae Binary: use structured answer. 2014-11-15 21:33:00 +02:00
Matt Miller 5481cf4ebc Fix minor code layout issues.
Reducing scroll spam from dzil by:

- Providing ABSTRACTs for all packages.
- Leaving VERSION vertical space where necessary.

Addresses #600 plus other annoyances in the process.
2014-08-20 14:45:33 -04:00
Matt Miller 24b149e97f Binary: expand to converting 64-bit decimal integers.
This uses Bit::Vector rather than presuming anything about the perl
support for 64-bit ints. This seems safer, even if it's a smidge slower.

This fixes issue #564 with test demonstrating such.
2014-07-29 09:02:30 +08:00
Matt Miller 0a474cf228 Binary: tighten up the binary to decimal trigger.
- Do not match when there are non-binary [01] characters in something
  which we posit to be "binary."
- Add test cases for the regressions.

We don't want to match on things which do not appear to be asking for
conversions. In the binary -> decimal case this is somewhat more
ambiguous, except that we can demand that the input look like binary, so
it's actually not so bad.

I didn't pay enough attention to the previous regex and how it matched
up with the new code. :(
2014-02-27 06:36:26 +08:00
Matt Miller 7a7054ac47 Binary: add expected trigger.
- Add expected trigger "decimal 3 to binary" which fixes #291
- Add complementary trigger for 'hex' where it may be ambiguous.
- Normalize hex conversion output.
- Add additional prepositions which imply conversion ('as', 'into')
- Adjust output style to be more like other IAs.
- Improve comments, albeit very slightly.
- Add additional tests, including covering all example queries.
- Add ABSTRACT to reduce scroll spam under `dzil test`
2014-02-13 19:48:53 +08:00
Dylan Lloyd baa2c1da4f added metadata to {Binary,Capitalize,Chars,ColorCodes}.pm 2012-11-06 15:53:46 -05:00
Torsten Raudssus 9d72a38dcd Cleanup, adding multiword trigger, checking for html encoded requirements (non there hehe) 2012-05-24 04:05:08 +02:00
Michael Smith 02e0290ee7 damn you, period 2012-04-22 13:49:50 -06:00
Michael Smith 652295d80f clean up binary goodie a bit and normalize output 2012-04-22 13:40:35 -06:00
yegg a9a5bb8bb5 fix up tests and update binary 2012-04-15 11:04:36 -04:00
Olivier 0994dbbf5e As a warmup, more features for the Binary plugin and an extended test suite. 2012-04-15 10:59:48 -04:00
hunterlang cbcfc305de apparently i can't read after 10pm 2012-03-21 00:08:12 -04:00
hunterlang d760e75995 CamelCase to answer_type and update tests with regexp 2012-03-20 23:44:51 -04:00
Torsten Raudssus f3bdd4f50a Removed Debugging 2012-03-12 13:00:50 +01:00
Michael Smith 3358cc44ff make some plugins prettier 2012-03-08 11:48:56 -07:00
Michael Smith 871e2702b4 start converting goodies for new API 2012-02-29 13:05:49 -07:00