Commit Graph

13 Commits (df205e2335748e3ab265dafb820eda0330ca82c7)

Author SHA1 Message Date
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
Daniel Bech 77a76939b0 Formatting
aligned some thingers
2016-05-01 23:00:53 +08:00
Daniel Bech 2273cc50a5 Updated to test with template
Updated to test full template instead of simple structured answer
2016-05-01 22:54:40 +08:00
Daniel Bech bc37677437 added new tests
More test cases for more triggers
2016-05-01 21:29:43 +08: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 99bd3dd6cb HexToASCII: add structured answer. 2014-11-15 21:32:59 +02:00
Matt Miller a264977d0d HexToASCII: Improve implementation and comments.
- Do not even process characters which we aren't going to include.
- Move guard against non-ASCII inside the printable_chr function.
- Add a test to show that it doesn't handle queries which contain
  non-ASCII characters.
- Add comments to clarify intent.

This is less clever than the previous version, which implies the
answer to my question from a previous commit.

Turns out that adding comments will actually make me do a slightly
better implementation!  Who knew?!
2014-01-09 03:37:40 +08:00
Matt Miller c08fe0dae7 HexToASCII: Add too long string test.
I also did some rearrangement of the test source, because I kept getting
lost in it, despiteit being so short. I hope this is ok.
2014-01-08 07:43:10 +08:00
Matt Miller 91117a9eb7 HexToASCII: improve and standardize output
- With code tags (thanks, @mintsoft!), we'll count on the user agent
  rendering the codes slightly differently, so we do not need to style.
- Returning both 'pure ASCII' and 'html' representations.

The code layout now feels either slightly over-clever or slightly
under-clever and I am not sure which!
2014-01-06 18:41:30 +08:00
Matt Miller ea6662ef38 HexToASCII: display information about invisible characters
- Reduce the number of entered characters to 128, since we can't be sure
  of the display width any more.
- Show "invisible characters" (unprintable + non-space whitespace) in a
  special format
2014-01-04 08:36:56 +08:00
Koosha Khajeh Moogahi 6e02789eaf Make a minor change to the format of the output 2012-12-03 14:07:54 +03:30
Koosha Khajeh Moogahi 8faf48358c The goodie to convert a given hex value to its equivalent ASCII representation 2012-12-02 15:58:49 +03:30