Commit Graph

16 Commits (master)

Author SHA1 Message Date
tossj fc7c03331d Binary: Encoded query string into UTF-8 before binary conversion (#4486) 2017-09-14 10:37:11 -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
Hugo Thiessard 34fb831587 Updates Binary Goodie Re #2767 (#2859) 2016-04-28 19:17:57 +01:00
Chris Wilson 194556f738 Fix Binary TestCases 2015-01-09 20:01:49 +11:00
Chris Wilson 2f11d6cc76 Update Binary IA to Uppercase. Fix All Test Cases for Uppercase Changes. 2015-01-09 19:46:54 +11:00
Matt Miller 8c06d6deae Binary: use structured answer. 2014-11-15 21:33:00 +02: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
Brian Duggan b708b065a9 added "12 in binary" test to Binary.pm and TimeZoneConverter.pm 2014-02-09 11:06:00 -05: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
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