File: ffi_platypus_internal.t

package info (click to toggle)
libffi-platypus-perl 2.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,860 kB
  • sloc: perl: 7,388; ansic: 6,862; cpp: 53; sh: 19; makefile: 14
file content (22 lines) | stat: -rw-r--r-- 456 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
use Test2::V0 -no_srand => 1;
use FFI::Platypus::Internal;

subtest 'basic' => sub {

  note "alpha order:";

  foreach my $const (sort @FFI::Platypus::Internal::EXPORT)
  {
    pass sprintf("%-30s 0x%04x", $const, __PACKAGE__->$const);
  }

  note "value order:";

  foreach my $const (sort { __PACKAGE__->$a <=> __PACKAGE__->$b } @FFI::Platypus::Internal::EXPORT)
  {
    pass sprintf("%-30s 0x%04x", $const, __PACKAGE__->$const);
  }

};

done_testing;