Sha256: 800ed76f36256ad71e331631189d5555a7ce111e1fcec55ee2052948a8debe2a
Contents?: true
Size: 564 Bytes
Versions: 8
Compression:
Stored size: 564 Bytes
Contents
# frozen_string_literal: true require "spec_helper" RSpec.describe Code::Parser do [ "", " ", "\n", "# comment", "/* comment", "/* comment */", "// comment", "/* first comment */ # second comment", "nothing", " nothing ", "nothing nothing nothing" ].each do |input, _output| it input.inspect do described_class.parse(input) end end Dir["spec/fixtures/code/parser/**/*.code"].each do |filename| it "parses #{filename}" do described_class.parse(File.read(filename)) end end end
Version data entries
8 entries across 8 versions & 1 rubygems