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: duparray_test.rb
    path of file: ./repos/tenderjit/test/instructions
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require "helper"

class TenderJIT
  class DupArray < JITTest
    def duparray
      a = [1, 2]
      a
    end

    def test_duparray
      compile method(:duparray), recv: self
      assert_equal 1, jit.compil
    
    def test_duparray
      compile method(:duparray), recv: self
      assert_equal 1, jit.compiled_methods
      assert_equal 0, jit.executed_methods
      assert_equal 0, jit.exits

      jit.enable!
      v = duparray
      jit.disable!
      assert_equal [1, 2], v

      assert_equal 1, jit.compiled_methods
      assert_equal 1, jit.executed_methods
      assert_equal 0, jit.exits
    ensure
      jit.uncompile method(:duparray)
    end