Repository navigation
Expand file tree
/
Copy pathbounded_group_input_v1.json
More file actions
101 lines (101 loc) · 3.36 KB
/
Copy pathbounded_group_input_v1.json
File metadata and controls
101 lines (101 loc) · 3.36 KB
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
93
94
95
96
97
98
99
100
101
{
"schema": "cellscript-bounded-group-input-fixture-v1",
"source": "tests/fixtures/bounded_group_input.cell",
"entry": "verify",
"max_elements": 3,
"element_width_bytes": 16,
"selection": "exact-current-type-script-group-input",
"order": "canonical-group-relative-input-order",
"logical_identity_policy": "application-defined-not-enforced-by-collection-selection",
"resource_evidence": {
"maximum_source": "tests/fixtures/bounded_group_input_max.cell",
"maximum_elements": 1024,
"measurement_backend": "ckb-testtool-full-transaction-context",
"max_elf_bytes": 4096,
"max_cycles": 3000000
},
"cases": [
{
"name": "zero",
"inputs": [],
"expected_exit": 0
},
{
"name": "one",
"inputs": [
{ "scope": "group", "data_hex": "01000000000000000a00000000000000" }
],
"expected_exit": 0
},
{
"name": "maximum_n",
"inputs": [
{ "scope": "group", "data_hex": "01000000000000000a00000000000000" },
{ "scope": "group", "data_hex": "02000000000000001400000000000000" },
{ "scope": "group", "data_hex": "03000000000000001e00000000000000" }
],
"expected_exit": 0
},
{
"name": "above_maximum_n_plus_one",
"inputs": [
{ "scope": "group", "data_hex": "01000000000000000100000000000000" },
{ "scope": "group", "data_hex": "02000000000000000100000000000000" },
{ "scope": "group", "data_hex": "03000000000000000100000000000000" },
{ "scope": "group", "data_hex": "04000000000000000100000000000000" }
],
"expected_exit": 21
},
{
"name": "malformed_group_element",
"inputs": [
{ "scope": "group", "data_hex": "01000000" }
],
"expected_exit": 4
},
{
"name": "predicate_false_first",
"inputs": [
{ "scope": "group", "data_hex": "01000000000000000000000000000000" },
{ "scope": "group", "data_hex": "02000000000000000100000000000000" },
{ "scope": "group", "data_hex": "03000000000000000100000000000000" }
],
"expected_exit": 5
},
{
"name": "predicate_false_middle",
"inputs": [
{ "scope": "group", "data_hex": "01000000000000000100000000000000" },
{ "scope": "group", "data_hex": "02000000000000000000000000000000" },
{ "scope": "group", "data_hex": "03000000000000000100000000000000" }
],
"expected_exit": 5
},
{
"name": "predicate_false_last",
"inputs": [
{ "scope": "group", "data_hex": "01000000000000000100000000000000" },
{ "scope": "group", "data_hex": "02000000000000000100000000000000" },
{ "scope": "group", "data_hex": "03000000000000000000000000000000" }
],
"expected_exit": 5
},
{
"name": "wrong_type_and_outside_group_are_excluded",
"inputs": [
{ "scope": "outside_group", "data_hex": "ff" },
{ "scope": "group", "data_hex": "07000000000000000b00000000000000" },
{ "scope": "outside_group", "data_hex": "00000000000000000000000000000000" }
],
"expected_exit": 0
},
{
"name": "duplicate_application_identity_is_collection_neutral",
"inputs": [
{ "scope": "group", "data_hex": "09000000000000000a00000000000000" },
{ "scope": "group", "data_hex": "09000000000000001400000000000000" }
],
"expected_exit": 0
}
]
}