<commit_before>module "GameObject"

test "()", ->
  gameObject = GameObject()

test "construct", ->
  gameObject = GameObject.construct
    x: 20
    y: 20
    
  equals(gameObject.position().x, 20)

test "[event] step ", ->
  gameObject = GameObject
    step: "equals(I.age, 0, 'Age should be 0 on first step')"
    
  gameObject.update()

module()<commit_msg>added more event tests<commit_after>module "GameObject"

test "()", ->
  gameObject = GameObject()

test "construct", ->
  gameObject = GameObject.construct
    x: 20
    y: 20
    
  equals(gameObject.position().x, 20)
  
test "[event] create", 2, ->
  GameObject
    create: ->
      ok true, "created event is fired on create"
      
  GameObject
    create: 'ok(true, "created event is fired on create")'

test "[event] step", 2, ->
  gameObject = GameObject
    step: "equals(I.age, 0, 'Age should be 0 on first step')"
    
  gameObject.update()
  
  gameObject = GameObject
    step: ->
      ok true, 'Step event is called'
    
  gameObject.update()
  
test "[event] destroy", 2, ->
  GameObject
    destroy: ->
      ok true, "destroyed event is fired on destroy"
  .destroy()
      
  GameObject
    destroy: 'ok(true, "destroyed event is fired on destroy")'
  .destroy()

module()
{'fraction_non_alphanumeric': 0.13487629688747008, 'fraction_numerical': 0.015163607342378291, 'mean_word_length': 2.8703703703703702, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 14, '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': '83241', 'n_tokens_mistral': 431, 'n_tokens_neox': 409, 'n_words': 125}