You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: test_delete.rb
    path of file: ./repos/truffleruby/test/mri/tests/cext-ruby/hash
    
    the code of the file until where you have to start completion: # frozen_string_literal: false
require 'test/unit'
require 'c/has
    
    def test_delete
      hash = Bug::Hash.new
      hash[1] = 2
      called = false
      assert_equal 1, hash.size
      assert_equal [2], hash.delete!(1) {called = true}
      assert_equal false, called, "block called"
      assert_equal 0, hash.size
      assert_equal nil, hash.delete!(1) {called = true}
      assert_equal false, called, "block called"
      assert_equal 0, hash.size
    end