aboutsummaryrefslogtreecommitdiffstats
path: root/pkgid_test.go
blob: 4a6120f82bec411364d3a30cd2343ec6778e1341 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
package lulu

import "testing"

func TestPkgId(t *testing.T) {
	t.Parallel()
	requireJsonEq(t,
		`"0850X1100.BW.STD.LW.060UW444.MNG"`,
		PkgId{
			UsLetter,
			Mono,
			Standard,
			LinenWrap,
			P60UncoatedWhite,
			Matte,
			NavyLinen,
			GoldFoil})
	requireJsonEq(t,
		`"0600X0900.FC.STD.PB.080CW444.GXX"`,
		PkgId{
			UsTrade,
			Color,
			Standard,
			Perfect,
			P80CoatedWhite,
			Gloss,
			NoLinen,
			NoFoil})
	requireJsonEq(t,
		`"0700X1000.FC.PRE.CO.060UC444.MXX"`,
		PkgId{
			Executive,
			Color,
			Premium,
			Coil,
			P60UncoatedCream,
			Matte,
			NoLinen,
			NoFoil})
	requireJsonEq(t,
		`"0600X0900.BW.STD.PB.060UW444.MXX"`,
		PkgId{
			UsTrade,
			Mono,
			Standard,
			Perfect,
			P60UncoatedWhite,
			Matte,
			NoLinen,
			NoFoil})
}