@@ -23,15 +23,16 @@ func assertExtract<Storage>(
23
23
let actual = storage [ bits: bitRanges]
24
24
#expect(
25
25
actual == expected,
26
- """
27
- Extracting value \
28
- from ' \( hex: storage) ' \
29
- at bit ranges \( bitRanges
30
- . map { " \( $0. lowerBound) ..< \( $0. upperBound) " }
31
- . joined ( separator: " , " ) ) ] \
32
- resulted in ' \( hex: actual) ', \
33
- but expected ' \( hex: expected) '
34
- """ ,
26
+ Comment (
27
+ rawValue: """
28
+ Extracting value \
29
+ from ' \( hex: storage) ' \
30
+ at bit ranges \( bitRanges
31
+ . map { " \( $0. lowerBound) ..< \( $0. upperBound) " }
32
+ . joined ( separator: " , " ) ) ] \
33
+ resulted in ' \( hex: actual) ', \
34
+ but expected ' \( hex: expected) '
35
+ """ ) ,
35
36
sourceLocation: sourceLocation)
36
37
}
37
38
@@ -46,14 +47,15 @@ func assertInsert<Storage>(
46
47
actual [ bits: bitRanges] = value
47
48
#expect(
48
49
actual == expected,
49
- """
50
- Inserting ' \( hex: value) ' \
51
- into ' \( hex: storage) ' \
52
- at bit ranges [ \( bitRanges
53
- . map { " \( $0. lowerBound) ..< \( $0. upperBound) " }
54
- . joined ( separator: " , " ) ) ] \
55
- resulted in ' \( hex: actual) ', \
56
- but expected to get ' \( hex: expected) '
57
- """ ,
50
+ Comment (
51
+ rawValue: """
52
+ Inserting ' \( hex: value) ' \
53
+ into ' \( hex: storage) ' \
54
+ at bit ranges [ \( bitRanges
55
+ . map { " \( $0. lowerBound) ..< \( $0. upperBound) " }
56
+ . joined ( separator: " , " ) ) ] \
57
+ resulted in ' \( hex: actual) ', \
58
+ but expected to get ' \( hex: expected) '
59
+ """ ) ,
58
60
sourceLocation: sourceLocation)
59
61
}
0 commit comments