Debian Codegraph @

src/tests/compact.rs

raw symbols SCIP
1 use craterust-analyzer cargo fast_qr 0.13.1 crate/::compactrust-analyzer cargo fast_qr 0.13.1 compact/::CompactQRrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#;
2
3 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
4 fn push8_linedrust-analyzer cargo fast_qr 0.13.1 tests/compact/push8_lined().() {
5 let mut expected = [0u8; 64];
6 let mut res = CompactQRrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#::with_lenrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]with_len().(64);
7
8 res.push_u8rust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_u8().(0);
9 res.push_u8rust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_u8().(1);
10 res.push_u8rust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_u8().(2);
11
12 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 1;
13 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().2]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 2;
14
15 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.lenrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#len., 8 *rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Mul<Self>`]mul(). 3, "expected 24, got {}", res.lenrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#len.);
16 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
17 }
18
19 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
20 fn push_bits_halfrust-analyzer cargo fast_qr 0.13.1 tests/compact/push_bits_half().() {
21 let mut expected = [0u8; 64];
22 let mut res = CompactQRrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#::with_lenrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]with_len().(64);
23
24 res.push_bitsrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_bits().(0b1111, 4);
25 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.lenrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#len., 4, "expected 4, got {}", res.lenrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#len.);
26 res.push_bitsrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_bits().(0, 8);
27 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.lenrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#len., 12, "expected 12, got {}", res.lenrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#len.);
28 res.push_bitsrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_bits().(0b1111, 4);
29 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.lenrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#len., 16, "expected 16, got {}", res.lenrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#len.);
30
31 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1111_0000;
32 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b0000_1111;
33
34 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
35 }
36
37 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
38 fn push_bits_randomrust-analyzer cargo fast_qr 0.13.1 tests/compact/push_bits_random().() {
39 let mut expected = [0u8; 64];
40 let mut res = CompactQRrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#::with_lenrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]with_len().(64);
41
42 res.push_bitsrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_bits().(0b1111, 2);
43 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1100_0000;
44 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.lenrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#len., 2, "expected 2, got {}", res.lenrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#len.);
45 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
46
47 res.push_bitsrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_bits().(0, 1);
48 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1100_0000;
49 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.lenrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#len., 3, "expected 3, got {}", res.lenrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#len.);
50 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
51
52 res.push_bitsrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_bits().(5, 3);
53 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1101_0100;
54 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.lenrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#len., 6, "expected 6, got {}", res.lenrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#len.);
55 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
56
57 res.push_bitsrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_bits().(0b1101, 2);
58 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1101_0101;
59 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.lenrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#len., 8, "expected 8, got {}", res.lenrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#len.);
60 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
61 }
62
63 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
64 fn push_bits_push8rust-analyzer cargo fast_qr 0.13.1 tests/compact/push_bits_push8().() {
65 let mut expected = [0u8; 64];
66 let mut res = CompactQRrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#::with_lenrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]with_len().(64);
67
68 res.push_bitsrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_bits().(0b1111, 3);
69 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1110_0000;
70 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
71
72 res.push_u8rust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_u8().(0b1001_1110);
73 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1111_0011;
74 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1100_0000;
75 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
76 }
77
78 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
79 fn push_bits_push8_2rust-analyzer cargo fast_qr 0.13.1 tests/compact/push_bits_push8_2().() {
80 let mut expected = [0u8; 64];
81 let mut res = CompactQRrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#::with_lenrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]with_len().(64);
82
83 res.push_bitsrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_bits().(0b1111, 3);
84 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1110_0000;
85 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
86
87 res.push_u8rust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_u8().(0b1001_1110);
88 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1111_0011;
89 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1100_0000;
90 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
91
92 res.push_u8rust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_u8().(0b1001_1110);
93 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1111_0011;
94 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1101_0011;
95 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().2]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1100_0000;
96 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
97 }
98
99 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
100 fn push8_push_bitsrust-analyzer cargo fast_qr 0.13.1 tests/compact/push8_push_bits().() {
101 let mut expected = [0u8; 64];
102 let mut res = CompactQRrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#::with_lenrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]with_len().(64);
103
104 res.push_u8rust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_u8().(0b1001_1110);
105 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1001_1110;
106 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
107
108 res.push_bitsrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_bits().(0b1_1011_1001_1110, 13);
109 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1001_1110;
110 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1101_1100;
111 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().2]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1111_0000;
112 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
113 }
114
115 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
116 fn push_slicerust-analyzer cargo fast_qr 0.13.1 tests/compact/push_slice().() {
117 let mut expected = [0u8; 64];
118 let mut res = CompactQRrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#::with_lenrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]with_len().(64);
119
120 res.push_u8_slicerust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_u8_slice().(&[0b1001_1110, 0b1001_1110, 0b1001_1110]);
121 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1001_1110;
122 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1001_1110;
123 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().2]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1001_1110;
124 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
125 }
126
127 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
128 fn push_slice_offrust-analyzer cargo fast_qr 0.13.1 tests/compact/push_slice_off().() {
129 let mut expected = [0u8; 64];
130 let mut res = CompactQRrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#::with_lenrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]with_len().(64);
131
132 res.push_bitsrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_bits().(0b1111, 3);
133 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1110_0000;
134 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
135
136 res.push_u8_slicerust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_u8_slice().(&[0b0000_0000, 0b1111_1111, 0b0000_0000]);
137 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1110_0000;
138 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b0001_1111;
139 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().2]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1110_0000;
140 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().3]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b0000_0000;
141 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
142 }
143
144 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
145 fn push_bitfs_offrust-analyzer cargo fast_qr 0.13.1 tests/compact/push_bitfs_off().() {
146 let mut expected = [0u8; 64];
147 let mut res = CompactQRrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#::with_lenrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]with_len().(64);
148
149 res.push_bitsrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_bits().(0b0_0000_0000_0000_0000, 17);
150 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().|=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().0b0000_0000;
151 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().|=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().0b0000_0000;
152 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().2]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().|=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().0b0000_0000;
153 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.lenrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#len., 17);
154 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...8]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...8]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
155
156 res.push_bitsrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_bits().(0b1_1111_1111_1111_1111, 17);
157 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().2]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().|=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().0b0111_1111;
158 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().3]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().|=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().0b1111_1111;
159 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().|=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().0b1100_0000;
160 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...8]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...8]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
161
162 res.push_bitsrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_bits().(0b0_0000_0000_0000_0000, 17);
163 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().4]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().|=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().0b1100_0000;
164 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().5]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().|=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().0b0000_0000;
165 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().6]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().|=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().0b0000_0000;
166 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...8]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...8]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
167
168 res.push_bitsrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_bits().(0b1, 2);
169 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().5]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().|=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().0b0000_0000;
170 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().6]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().|=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().0b0000_1000;
171 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...8]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...8]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
172
173 res.push_u8rust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_u8().(0b1111_1111);
174 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().6]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().|=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().0b0000_1111;
175 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().7]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().|=rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/bit/impl#[u8][`BitOrAssign<Self>`]bitor_assign().0b1111_1000;
176 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...8]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...8]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
177 }
178
179 #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:]
180 fn push_randomrust-analyzer cargo fast_qr 0.13.1 tests/compact/push_random().() {
181 let mut expected = [0u8; 64];
182 let mut res = CompactQRrust-analyzer cargo fast_qr 0.13.1 compact/CompactQR#::with_lenrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]with_len().(64);
183
184 res.push_bitsrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_bits().(1, 1);
185 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1000_0000;
186 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...8]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...8]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
187
188 res.push_u8rust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_u8().(0b1010_1010);
189 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().0]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b1101_0101;
190 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b0000_0000;
191 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...8]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...8]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
192
193 res.push_bitsrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_bits().(1, 1);
194 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b0100_0000;
195 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...8]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...8]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
196
197 res.push_bitsrust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]push_bits().(1, 3);
198 expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut().1]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`IndexMut<I>`]index_mut(). = 0b0100_1000;
199 assert_eqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/assert_eq!!(res.get_datarust-analyzer cargo fast_qr 0.13.1 compact/impl#[CompactQR]get_data().()[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()...8]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/index/Index#index()., expected[rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index()...8]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().);
200 }