File: 02_conv.t

package info (click to toggle)
libstring-hexconvert-perl 0.02-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 140 kB
  • sloc: perl: 72; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 283 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/perl


use lib '../lib';

use strict;
use warnings;



use Test::More tests => 2;


use String::HexConvert ':all';

is(ascii_to_hex("hello world"), "68656c6c6f20776f726c64", "ascii_to_hex");

is(hex_to_ascii("68656c6c6f20776f726c64"), "hello world", "hex_to_ascii");