<commit_before>
# Prefer local library over installed version.
$:.unshift( File.join( File.dirname(__FILE__), "..", "lib" ) )
$:.unshift( File.join( File.dirname(__FILE__), "..", "ext", "rubygame" ) )

require 'rubygame'
include Rubygame::Events



describe "a mouse button event", :shared => true do
  
  it "should have a button symbol"

  it "should complain if button symbol is not a symbol"

  it "should have a position"

  it "should complain if position is not an array"
 
end



describe "MousePressed" do

  before :each do
    @event = MousePressed.new( :mouse_left, [1,2] )
  end

  it_should_behave_like "a mouse button event"

end


describe "MouseReleased" do
  
  before :each do
    @event = MouseReleased.new( :mouse_left, [1,2] )
  end

  it_should_behave_like "a mouse button event"

end<commit_msg>Added specs for testing that arguments are required.<commit_after>
# Prefer local library over installed version.
$:.unshift( File.join( File.dirname(__FILE__), "..", "lib" ) )
$:.unshift( File.join( File.dirname(__FILE__), "..", "ext", "rubygame" ) )

require 'rubygame'
include Rubygame::Events



describe "a mouse button event", :shared => true do
  
  it "should have a button symbol"

  it "should complain if button symbol is not a symbol"

  it "should complain if button symbol is omitted"


  it "should have a position"

  it "should complain if position is not an array"

  it "should complain if position is omitted"
 
end



describe "MousePressed" do

  before :each do
    @event = MousePressed.new( :mouse_left, [1,2] )
  end

  it_should_behave_like "a mouse button event"

end


describe "MouseReleased" do
  
  before :each do
    @event = MouseReleased.new( :mouse_left, [1,2] )
  end

  it_should_behave_like "a mouse button event"

end
{'fraction_non_alphanumeric': 0.10861001688238604, 'fraction_numerical': 0.004501969611705121, 'mean_word_length': 3.792452830188679, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4521587', 'n_tokens_mistral': 611, 'n_tokens_neox': 572, 'n_words': 207}