File: 06-non-decimal-indices.t

package info (click to toggle)
libenum-perl 1.12-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 136 kB
  • sloc: perl: 158; makefile: 2
file content (13 lines) | stat: -rw-r--r-- 268 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#!perl

use strict;
use warnings;

use Test::More 0.88 tests => 3;

use enum qw(EIGHT=010 FIFTEEN=0xf THOUSAND=1_000);

ok(EIGHT    == 8,    "EIGHT should equal 8");
ok(FIFTEEN  == 15,   "FIFTEEN should equal 15");
ok(THOUSAND == 1000, "THOUSAND should equal 1000");