Skip to content
Sections
>> Trisquel >> Pakete >> nabia >> perl >> libtest-bits-perl
nabia  ] [  aramo  ]
[ Quellcode: libtest-bits-perl  ]

Paket: libtest-bits-perl (0.02-2)

Perl module for testing binary data

Test::Bits provides a single subroutine, bits_is(), for testing binary data.

This module is quite similar to Test::BinaryData and Test::HexString in concept. The difference is that this module shows failure diagnostics in a different way, and has a slightly different calling style. Depending on the nature of the data you're working with, this module may be easier to work with.

In particular, when you're doing a lot of bit twiddling, this module's diagnostic output may make it easier to diagnose failures. A typical failure diagnostic will look like this:

The two pieces of binary data are not the same length (got 2, expected 3).

Binary data begins differing at byte 1.

Got: 01111000

Expect: 01111001

Andere Pakete mit Bezug zu libtest-bits-perl

  • hängt ab von
  • empfiehlt
  • schlägt vor
  • dep: liblist-allutils-perl
    Perl wrapper for modules List::Util and List::MoreUtils
  • dep: perl
    Larry Wall's Practical Extraction and Report Language

libtest-bits-perl herunterladen

Download für alle verfügbaren Architekturen
Architektur Paketgröße Größe (installiert) Dateien
all 9,0 kB30 kB [Liste der Dateien]