 #endif
 
 var StringTests = TestSuite("StringTests")
-
-var objCPresent: Bool {
-#if _runtime(_ObjC)
-  return true
-#else
-  return false
-#endif
-}
 
 struct ComparisonTest {
   let expectedUnicodeCollation: ExpectedComparisonResult


StringTests.test("Failures{hasPrefix,hasSuffix}")
  .xfail(.Custom({ true }, reason: "blocked on rdar://problem/19036555"))
  .skip(.Custom({ objCPresent == false },
    reason: "String.has{Prefix,Suffix} defined when _runtime(_ObjC)"))
  .code {
  let tests =
    [ComparisonTest(.LT, "\r\n", "t"), ComparisonTest(.GT, "\r\n", "\n")]

}

StringTests.test("hasPrefix,hasSuffix")
  .skip(.NativeRuntime(
    "String.has{Prefix,Suffix} defined when _runtime(_ObjC)"))
  .code {
  for test in comparisonTests {
    checkHasPrefixHasSuffix(test.lhs, test.rhs, test.loc.withCurrentLoc())
