Skip to content

Commit 33fd4b2

Browse files
spythemanpull[bot]
authored andcommitted
tests: improve formatting of enum_bitfield_64bit_test.v
1 parent c8cb1c8 commit 33fd4b2

1 file changed

Lines changed: 11 additions & 66 deletions

File tree

vlib/v/tests/enum_bitfield_64bit_test.v

Lines changed: 11 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,75 +1,20 @@
1-
// TODO: fix the formatting here, when VFMT ON/OFF is working
2-
1+
// vfmt off
32
[flag]
43
enum PawnsBoard as u64 {
5-
a8
6-
b8
7-
c8
8-
d8
9-
e8
10-
f8
11-
g8
12-
h8
13-
a7
14-
b7
15-
c7
16-
d7
17-
e7
18-
f7
19-
g7
20-
h7
21-
a6
22-
b6
23-
c6
24-
d6
25-
e6
26-
f6
27-
g6
28-
h6
29-
a5
30-
b5
31-
c5
32-
d5
33-
e5
34-
f5
35-
g5
36-
h5
37-
a4
38-
b4
39-
c4
40-
d4
41-
e4
42-
f4
43-
g4
44-
h4
45-
a3
46-
b3
47-
c3
48-
d3
49-
e3
50-
f3
51-
g3
52-
h3
53-
a2
54-
b2
55-
c2
56-
d2
57-
e2
58-
f2
59-
g2
60-
h2
61-
a1
62-
b1
63-
c1
64-
d1
65-
e1
66-
f1
67-
g1
68-
h1
4+
a8 b8 c8 d8 e8 f8 g8 h8
5+
a7 b7 c7 d7 e7 f7 g7 h7
6+
a6 b6 c6 d6 e6 f6 g6 h6
7+
a5 b5 c5 d5 e5 f5 g5 h5
8+
a4 b4 c4 d4 e4 f4 g4 h4
9+
a3 b3 c3 d3 e3 f3 g3 h3
10+
a2 b2 c2 d2 e2 f2 g2 h2
11+
a1 b1 c1 d1 e1 f1 g1 h1
6912
}
13+
// vfmt on
7014

7115
fn test_flag_enum_with_64_value_bits() {
7216
last_value := PawnsBoard.h1
17+
dump(last_value)
7318
dump(u64(last_value))
7419
assert u64(last_value) == 0x8000_0000_0000_0000
7520

0 commit comments

Comments
 (0)