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.
MutableCollection
std::string
Comparable
1 parent 8b1e257 commit dd78e3bCopy full SHA for dd78e3b
test/Interop/Cxx/stdlib/use-std-vector.swift
@@ -97,6 +97,11 @@ StdVectorTestSuite.test("VectorOfString as MutableCollection") {
97
expectEqual(v[0], std.string("xyz"))
98
expectEqual(v[1], std.string("abc"))
99
expectEqual(v[2], std.string("ijk"))
100
+
101
+ v.sort() // Swift function
102
+ expectEqual(v[0], std.string("abc"))
103
+ expectEqual(v[1], std.string("ijk"))
104
+ expectEqual(v[2], std.string("xyz"))
105
}
106
#endif
107
0 commit comments