Sha256: 1f79aa18c444c625e0edd98ba8096031e308d01ecf9f4bb773ebe1c4f2f41638
Contents?: true
Size: 445 Bytes
Versions: 2
Compression:
Stored size: 445 Bytes
Contents
# frozen_string_literal: true require "minitest/autorun" require "stringio" # <%= config[:task].id %> class MainTest < Minitest::Test <% config[:task].samples.each.with_index(1) do |sample, index| %> def test_sample<%= index %> $stdin = StringIO.new(<<-STDIN) <%= sample.input.chomp %> STDIN assert_output(<<~STDOUT) { load "<%= config[:file_path] %>" } <%= sample.output.chomp %> STDOUT end <% end %> end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acclir-0.2.0 | lib/acclir/templates/new/main_test.rb.tt |
acclir-0.1.0 | lib/acclir/templates/new/main_test.rb.tt |