Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions test/Interop/Cxx/stdlib/Inputs/module.modulemap
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ module StdVector {
requires cplusplus
}

module StdString {
header "std-string.h"
requires cplusplus
}

module StdMap {
header "std-map.h"
requires cplusplus
Expand Down
8 changes: 0 additions & 8 deletions test/Interop/Cxx/stdlib/Inputs/std-string.h

This file was deleted.

5 changes: 2 additions & 3 deletions test/Interop/Cxx/stdlib/use-std-string.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,18 @@
// REQUIRES: executable_test

import StdlibUnittest
import StdString
import CxxStdlib

var StdStringTestSuite = TestSuite("StdString")

StdStringTestSuite.test("init") {
let s = CxxString()
let s = std.string()
expectEqual(s.size(), 0)
expectTrue(s.empty())
}

StdStringTestSuite.test("push back") {
var s = CxxString()
var s = std.string()
s.push_back(42)
expectEqual(s.size(), 1)
expectFalse(s.empty())
Expand Down