Sha256: 919c6159d6dad2b49493c0ad9d92910cc6ddb8e6b68ced2093e19624bd08691d

Contents?: true

Size: 704 Bytes

Versions: 2

Compression:

Stored size: 704 Bytes

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib/')
require 'test/unit'

def ul_helper(src, expect)
  io = StringIO.new(src)
  li = LineInput.new(io)
  @compiler.__send__(:compile_ulist, li)
  assert_equal expect, @builder.raw_result
end

def builder_helper(src, expect, method_sym)
  io = StringIO.new(src)
  li = LineInput.new(io)
  @compiler.__send__(method_sym, li)
  assert_equal expect, @builder.raw_result
end

def touch_file(path)
  File.open(path, "w").close
  path
end

def prepare_samplebook(srcdir)
  samplebook_dir = File.expand_path("sample-book/src/", File.dirname(__FILE__))
  FileUtils.cp_r(Dir.glob(samplebook_dir + "/*"), srcdir)
  YAML.load(File.open(srcdir + "/config.yml"))
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
review-1.1.0 test/test_helper.rb
tmtms-review-1.0.0 test/test_helper.rb