Sha256: f8272b44c343e3bb0e6612dc0ec4a4b3c6bfd70bd49cc292c69a4c7d00fd4259
Contents?: true
Size: 844 Bytes
Versions: 2
Compression:
Stored size: 844 Bytes
Contents
require_relative "spec_helper" require "lignite" require "fileutils" describe Lignite::Assembler do shared_examples "compiles" do |base, asm_version| let(:datadir) { File.expand_path("../data", __FILE__) } 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
lignite-0.3.0 | spec/assembler_spec.rb |
lignite-0.2.0 | spec/assembler_spec.rb |