Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 841d5d341a
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (13 sloc) 0.42 kb
require 'test_helper'
module Brainfuck
class ParserTest < MiniTest::Unit::TestCase
%w{fwd bwd inc dec puts gets iteration exp}.each do |rule|
define_method "test_implements_a_#{rule}_rule" do
rules = Parser.rules.map(&:first).map do |pattern|
pattern.instance_variable_get(:@pattern)
end.map(&:keys).flatten
assert_includes rules, rule.to_sym
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.