forked from InsightSoftwareConsortium/itk-wasm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
IntTypesTest.js
80 lines (67 loc) · 1.83 KB
/
IntTypesTest.js
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
const test = require('ava')
const path = require('path')
const IntTypes = require(path.resolve(__dirname, '..', 'dist', 'IntTypes.js'))
test('Int8 should be defined', t => {
const type = IntTypes.Int8
t.is(type, 'int8_t')
})
test('UInt8 should be defined', t => {
const type = IntTypes.UInt8
t.is(type, 'uint8_t')
})
test('Int16 should be defined', t => {
const type = IntTypes.Int16
t.is(type, 'int16_t')
})
test('UInt16 should be defined', t => {
const type = IntTypes.UInt16
t.is(type, 'uint16_t')
})
test('Int32 should be defined', t => {
const type = IntTypes.Int32
t.is(type, 'int32_t')
})
test('UInt32 should be defined', t => {
const type = IntTypes.UInt32
t.is(type, 'uint32_t')
})
test('Int64 should be defined', t => {
const type = IntTypes.Int64
t.is(type, 'int64_t')
})
test('UInt64 should be defined', t => {
const type = IntTypes.UInt64
t.is(type, 'uint64_t')
})
test('SizeValueType should be defined', t => {
const type = IntTypes.SizeValueType
t.is(type, 'uint64_t')
})
test('SizeValueType should be equal to UInt64', t => {
const type = IntTypes.SizeValueType
t.is(type, 'uint64_t')
})
test('IdentifierType should be defined', t => {
const type = IntTypes.IdentifierType
t.is(type, 'uint64_t')
})
test('IdentifierType should be equal to UInt64', t => {
const type = IntTypes.IdentifierType
t.is(type, 'uint64_t')
})
test('IndexValueType should be defined', t => {
const type = IntTypes.IndexValueType
t.is(type, 'int64_t')
})
test('IndexValueType should be equal to Int64', t => {
const type = IntTypes.IndexValueType
t.is(type, 'int64_t')
})
test('OffsetValueType should be defined', t => {
const type = IntTypes.OffsetValueType
t.is(type, 'int64_t')
})
test('OffsetValueType should be equal to Int64', t => {
const type = IntTypes.OffsetValueType
t.is(type, 'int64_t')
})