Skip to content

Commit 2e6d6d2

Browse files
committed
Tests: New test for preamble
1 parent 8152f03 commit 2e6d6d2

2 files changed

Lines changed: 36 additions & 0 deletions

File tree

tests/ps_tests/preamble.ps.test

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
% Barcode Writer in Pure PostScript
2+
% https://bwipp.terryburton.co.uk
3+
%
4+
% vim: set sw=4 sts=4 et:
5+
%
6+
% Copyright (c) 2004-2026 Terry Burton
7+
%
8+
9+
10+
%
11+
% Category exists
12+
%
13+
{
14+
/uk.co.terryburton.bwipp /Category findresource
15+
type /dicttype eq
16+
} true isEqual
17+
18+
19+
%
20+
% InstanceType is packedarraytype or arraytype
21+
%
22+
{
23+
/uk.co.terryburton.bwipp /Category findresource
24+
/InstanceType get
25+
dup /packedarraytype eq exch /arraytype eq or
26+
} true isEqual
27+
28+
29+
%
30+
% Can find resources in the category
31+
%
32+
{
33+
/raiseerror /uk.co.terryburton.bwipp resourcestatus
34+
exch pop exch pop % Discard size and status, keep bool
35+
} true isEqual
36+

tests/ps_tests/test.ps

47 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)