Sha256: d5287f4cb6a014ab8a8fb177dba8113715dd372769c86d3eaedb93327722b62d
Contents?: true
Size: 783 Bytes
Versions: 1
Compression:
Stored size: 783 Bytes
Contents
require_relative "spec_helper" require "lignite" require "fileutils" describe Lignite::Assembler do shared_examples "compiles" do |base, asm_version| let(:in_rb) { "#{datadir}/#{base}.rb" } let(:actual_rbf) { "#{datadir}/#{base}.out.rbf" } let(:expected_rbf) { "#{datadir}/#{base}.rbf" } it "correctly assembles #{base}" do subject.assemble(in_rb, actual_rbf, version: asm_version) expect(FileUtils.compare_file(expected_rbf, actual_rbf)).to be_truthy FileUtils.rm actual_rbf end end it_behaves_like "compiles", "HelloWorld", 109 it_behaves_like "compiles", "HelloWorld-subop", 109 it_behaves_like "compiles", "VernierReadout", 109 it_behaves_like "compiles", "ColorReadout", 106 it_behaves_like "compiles", "NoDebug", 109 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lignite-0.4.0 | spec/assembler_spec.rb |