         editor.setCursorBufferPosition([0, 0])
         expectHighlights([0, 0], [0, 4])
 
-        editor.setCursorBufferPosition([0, 4])
+        editor.setCursorBufferPosition([0, 5])
         expectHighlights([0, 4], [0, 0])
 
         editor.setCursorBufferPosition([0, 2])

        expectHighlights([0, 6], [0, 0])

        editor.setCursorBufferPosition([0, 3])
        expectNoHighlights()

    describe "when the cursor is moved off a pair", ->


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

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

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