Sha256: 07ed6480a1899e7a1f4f750394f3756e3121286fd037493ccddf0b6b791d3563

Contents?: true

Size: 337 Bytes

Versions: 1

Compression:

Stored size: 337 Bytes

Contents

# frozen_string_literal: true

require 'tataru'

describe Tataru::Instructions::ClearInstruction do
  it 'clears temp' do
    mem = Tataru::Memory.new
    instr = Tataru::Instructions::ClearInstruction.new

    mem.hash[:temp] = { something: 'haha' }
    instr.memory = mem
    instr.run

    expect(mem.hash[:temp]).to eq({})
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tataru-0.2.0 spec/instructions/clear_instruction_spec.rb