title: Spaces and tab comparison string Xcode
body: <p>I wrote simple test:</p>
  
  <pre><code>   func testTabs() {
          let tabbed = "\t"
          let spaced = "    "
  
          XCTAssert(tabbed == spaced, "Comparison is illegal")
      }
  
     func testTabs() {
          let tabbed = "\t"
          let tab = "    "
  
          XCTAssert(tabbed == tab, "Comparison is illegal")
      }
  </code></pre>
  
  <p>if fails for using actual '<strong>tab</strong>' spacing,
  it fails for 4 spaces,2 spaces.
  So I compare <strong>tab</strong> for <strong>\t</strong> and it fails. ( also fails for any equivalent). </p>
  
  <p>Should it work at all?
  Should I never use <strong>tab</strong> in strings if I want do the tests? 
  Let me show what I mean:</p>
  
  <pre><code>func generateSomeString() -&gt; String {
      let array = ["Some","Stupid","People","Don't","Read","But","Comment"]
      let string = array.joined(separator: "\t")
      return string
  }
  
  func testStrings() {
      let string = generateSomeString()
      let expectedString = "Some    Stupid    People    Don't    Read    But    Comment"
      print(string)
      XCTAssert(string == expectedString, "Comparison is illegal")
  }
  </code></pre>