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_width_of.rb
    path of file: ./repos/thinreports-generator/test/basic_report/units/generator/pdf/prawn_ext
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'test_helper'

class Thinreports::BasicReport::Generator::PrawnExt::TestWidthOf < Minitest::Test
  def setup
    @pdf = Prawn::Document.new
  end

  def test_width_of
    text_width = @pdf.width
    
  def test_width_of
    text_width = @pdf.width_of('abcd')

    @pdf.character_spacing(1) do
      expected_character_space_width = 1 * 3
      assert_equal text_width + expected_character_space_width, @pdf.width_of('abcd')
    end

    @pdf.character_spacing(1) do
      assert_equal 0, @pdf.width_of('')
    end
  end