forked from generalmimon/ks-table-py-benchmark
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_col_fixed.ksy
93 lines (92 loc) · 1.77 KB
/
test_col_fixed.ksy
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
81
82
83
84
85
86
87
88
89
90
91
92
meta:
id: test_col_fixed
license: MIT
ks-version: 0.9 # using `valid`
endian: le
seq:
- id: table
type: data_table
types:
data_table:
seq:
- id: n_rows
type: u4
- id: n_columns
type: u1
- id: column_types
type: u2
repeat: expr
repeat-expr: n_columns
- id: check_column_types
size: 0
valid:
expr: |
column_types.size == 20
and column_types[0] == 1
and column_types[1] == 2
and column_types[2] == 3
and column_types[3] == 4
and column_types[4] == 1
and column_types[5] == 2
and column_types[6] == 3
and column_types[7] == 4
and column_types[8] == 1
and column_types[9] == 2
and column_types[10] == 3
and column_types[11] == 4
and column_types[12] == 1
and column_types[13] == 2
and column_types[14] == 3
and column_types[15] == 4
and column_types[16] == 1
and column_types[17] == 2
and column_types[18] == 3
and column_types[19] == 4
- id: table_rows
type: table_row
repeat: expr
repeat-expr: n_rows
table_row:
seq:
- id: flags
type: u1
- id: a
type: u2
- id: b
type: u4
- id: c
type: f4
- id: d
type: f8
- id: e
type: u2
- id: f
type: u4
- id: g
type: f4
- id: h
type: f8
- id: i
type: u2
- id: j
type: u4
- id: k
type: f4
- id: l
type: f8
- id: m
type: u2
- id: n
type: u4
- id: o
type: f4
- id: p
type: f8
- id: q
type: u2
- id: r
type: u4
- id: s
type: f4
- id: t
type: f8