Sha256: 2eec606f26df21fade271b203d4c0a6e8eba5cfd4edac30e0b800bb22661337a
Contents?: true
Size: 836 Bytes
Versions: 19
Compression:
Stored size: 836 Bytes
Contents
require "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
19 entries across 19 versions & 2 rubygems