mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-31 23:41:22 +00:00
45 lines
1.3 KiB
YAML
45 lines
1.3 KiB
YAML
# Credits to Danny Ryan (Ethereum Foundation)
|
|
---
|
|
|
|
title: Shuffling Algorithm Tests
|
|
summary: Test vectors for shuffling a list based upon a seed using `shuffle`
|
|
test_suite: shuffle
|
|
fork: tchaikovsky
|
|
version: 1.0
|
|
|
|
test_cases:
|
|
- config:
|
|
validator_count: 100
|
|
cycle_length: 8
|
|
shard_count: 32
|
|
min_committee_size: 8
|
|
- input: []
|
|
output: []
|
|
seed: !!binary ""
|
|
- name: boring_list
|
|
description: List with a single element, 0
|
|
input: [0]
|
|
output: [0]
|
|
seed: !!binary ""
|
|
- input: [255]
|
|
output: [255]
|
|
seed: !!binary ""
|
|
- input: [4, 6, 2, 6, 1, 4, 6, 2, 1, 5]
|
|
output: [2, 1, 6, 1, 4, 5, 6, 4, 6, 2]
|
|
seed: !!binary ""
|
|
- input: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
|
|
output: [4, 9, 1, 13, 8, 3, 5, 10, 7, 6, 11, 2, 12]
|
|
seed: !!binary ""
|
|
- input: [65, 6, 2, 6, 1, 4, 6, 2, 1, 5]
|
|
output: [6, 1, 2, 2, 6, 6, 1, 5, 65, 4]
|
|
seed: !!binary |
|
|
JlAYJ5H2j8g7PLiPHZI/rTS1uAvKiieOrifPN6Moso0=
|
|
- input: [35, 6, 2, 6, 1, 4, 6, 2, 1, 5, 7, 98, 3, 2, 11]
|
|
output: [35, 1, 6, 4, 6, 6, 5, 11, 2, 3, 7, 1, 2, 2, 98]
|
|
seed: !!binary |
|
|
VGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIDEzIGxhenkgZG9ncy4=
|
|
- input: [35, 6, 2, 6, 1, 4, 6, 2, 1, 5, 7, 98, 3, 2, 11]
|
|
output: [98, 6, 6, 11, 5, 35, 2, 7, 2, 6, 4, 2, 1, 3, 1]
|
|
seed: !!binary |
|
|
rDTbe23J4UA0yLIurjbJqk49VcavAC0Nysas+l5MlwvLc0B/JqQ=
|