Add spec for 0 address

This commit is contained in:
Corey Johnson & Nathan Sobo
2012-03-22 11:41:56 -07:00
parent 296a80160b
commit f045ec9983

View File

@@ -21,6 +21,14 @@ describe "CommandInterpreter", ->
interpreter.eval(editor, '4,7')
expect(editor.selection.getBufferRange()).toEqual [[3, 0], [7, 0]]
describe "0", ->
it "selects the zero-length string at the start of the file", ->
interpreter.eval(editor, '0')
expect(editor.selection.getBufferRange()).toEqual [[0,0], [0,0]]
interpreter.eval(editor, '0,1')
expect(editor.selection.getBufferRange()).toEqual [[0,0], [1,0]]
describe "$", ->
it "selects EOF", ->
interpreter.eval(editor, '$')