We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0788bf5 commit d8bb5efCopy full SHA for d8bb5ef
validation-test/stdlib/Lazy.swift.gyb
@@ -127,7 +127,13 @@ LazyTestSuite.test("CollectionOfOne/${name}")
127
}
128
% end
129
130
-LazyTestSuite.test("CollectionOfOne/subscript(Index)/Get/Set/Empty/NoTrap") {
+LazyTestSuite.test("CollectionOfOne/index(after:), index(before:)") {
131
+ let c = CollectionOfOne<OpaqueValue<Int>>(OpaqueValue(42))
132
+ expectEqual(1, c.index(after: 0))
133
+ expectEqual(0, c.index(before: 1))
134
+}
135
+
136
+LazyTestSuite.test("CollectionOfOne/subscript(Index)/Get/Set/NoTrap") {
137
var c = CollectionOfOne<OpaqueValue<Int>>(OpaqueValue(42))
138
c[0] = OpaqueValue(4242)
139
expectEqual(4242, c[0].value)
0 commit comments