         expectHighlights([0, 6], [0, 0])
 
         editor.setCursorBufferPosition([0, 3])
+        expectNoHighlights()
+
+    describe "when the start character and end character of the pair are equivalent", ->
+      it "does not attempt to highlight pairs", ->
+        editor.setText "'hello'"
+        editor.setCursorBufferPosition([0, 0])
         expectNoHighlights()
 
     describe "when the cursor is moved off a pair", ->

          editor.setCursorBufferPosition([0, 7])
          expectHighlights([0, 1], [2, 2])

      describe "when the opening and closing tags are on the same line", ->
        it "highlight the opening and closing tags", ->
          buffer.setText "<test>text</test>"


    waitsForPromise ->
      atom.packages.activatePackage('language-xml')

    waitsForPromise ->
      atom.workspace.open('sample.js')

    runs ->
      editor = atom.workspace.getActiveTextEditor()
