Sha256: f4c9ae1b395cfd8754efe19f496ff5f278d27218532479c56003c9d64cf13fd6

Contents?: true

Size: 815 Bytes

Versions: 5

Compression:

Stored size: 815 Bytes

Contents

<% dut = aOutputInfo.designClassName %>

<% case aOutputInfo.specFormat %>
<% when :xUnit %>
require 'test/unit'

class <%= aOutputInfo.specClassName %> < Test::Unit::TestCase
  def setup
    <%= dut %>.reset!
  end
<% aModuleInfo.ports.each do |port| %>

  def test_<%= port.name %>
    # assert <%= dut %>.<%= port.name %> ..., "<%= port.name %> should ..."
  end
<% end %>
end
<% when :tSpec %>
require 'test/spec'

context "A resetted <%= dut %>" do
  setup do
    <%= dut %>.reset!
  end

  specify "should ..." do
    # <%= dut %>.should ...
  end
end
<% when :rSpec %>
require 'spec'

describe <%= dut %>, " when resetted" do
  before do
    <%= dut %>.reset!
  end

  it "should ..." do
    # <%= dut %>.should ...
  end
end
<% else %>
<%= dut %>.reset!
# raise "should ..." unless <%= dut %> ...
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby-vpi-18.0.0 bin/generate/spec.rb
ruby-vpi-17.0.0 bin/generate/spec.rb
ruby-vpi-18.0.1 bin/generate/spec.rb
ruby-vpi-19.0.0 bin/generate/spec.rb
ruby-vpi-18.0.2 bin/generate/spec.rb