Skip to content

Commit 2465d15

Browse files
authored
Merge pull request #66599 from apple/egorzhdan/simplify-std-string-test
[cxx-interop] Simplify a `std::string` test
2 parents 5bddd51 + dab1cb5 commit 2465d15

File tree

3 files changed

+2
-16
lines changed

3 files changed

+2
-16
lines changed

test/Interop/Cxx/stdlib/Inputs/module.modulemap

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ module StdVector {
33
requires cplusplus
44
}
55

6-
module StdString {
7-
header "std-string.h"
8-
requires cplusplus
9-
}
10-
116
module StdMap {
127
header "std-map.h"
138
requires cplusplus

test/Interop/Cxx/stdlib/Inputs/std-string.h

Lines changed: 0 additions & 8 deletions
This file was deleted.

test/Interop/Cxx/stdlib/use-std-string.swift

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,18 @@
33
// REQUIRES: executable_test
44

55
import StdlibUnittest
6-
import StdString
76
import CxxStdlib
87

98
var StdStringTestSuite = TestSuite("StdString")
109

1110
StdStringTestSuite.test("init") {
12-
let s = CxxString()
11+
let s = std.string()
1312
expectEqual(s.size(), 0)
1413
expectTrue(s.empty())
1514
}
1615

1716
StdStringTestSuite.test("push back") {
18-
var s = CxxString()
17+
var s = std.string()
1918
s.push_back(42)
2019
expectEqual(s.size(), 1)
2120
expectFalse(s.empty())

0 commit comments

Comments
 (0)