Sha256: cfc417308bf7e8cba0efd08612e7ae4c61ea8c5ad462e0515d517731ceb2f84e
Contents?: true
Size: 877 Bytes
Versions: 57
Compression:
Stored size: 877 Bytes
Contents
require File.join(File.dirname(__FILE__), "..", "spec_helper") describe Redcar::EditViewSWT::WordMoveListener do before do @word = Redcar::EditViewSWT::WordMoveListener.new(nil) end describe "moving forwards" do it "should move over a word to the next non-word char" do @word.next_offset(0, 0, "foo.bar").should == 3 end it "should move over a symbol and a word to the next non-word char" do @word.next_offset(0, 0, ".foo.bar").should == 4 end it "should move over multiple symbols to the next word" do @word.next_offset(0, 0, "..foo.bar").should == 2 end it "should move over a space and the next word " do @word.next_offset(0, 0, " foo.bar").should == 4 end it "should move over multiple spaces to the next word " do @word.next_offset(0, 0, " foo.bar").should == 2 end end end
Version data entries
57 entries across 57 versions & 2 rubygems