Sha256: 9a6f95e459c94cea4a70166f4adffa76bb4aae327d416161a607f3b79f2e790e

Contents?: true

Size: 287 Bytes

Versions: 1

Compression:

Stored size: 287 Bytes

Contents

# frozen_string_literal: true

require 'tataru'

describe Tataru::Instructions::EndInstruction do
  it 'sets end to true' do
    mem = Tataru::Memory.new
    instr = Tataru::Instructions::EndInstruction.new

    instr.memory = mem
    instr.run

    expect(mem.end).to eq true
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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