Sha256: c1a76cad1541d4f443304628357fc86e44ffca89f719d077722a68aa81693a5a
Contents?: true
Size: 505 Bytes
Versions: 12
Compression:
Stored size: 505 Bytes
Contents
require "spec_helper" RSpec.describe ::Code::Parser do subject { ::Code::Parser.parse(input) } ["a * b", "a / b", "(a / b) / c", "a / (b / c)"].each do |input| context input do let!(:input) { input } it { subject } end end [ "a /* cool */ * b", "a * /* cool */ b", "a * b * c /* cool */", "a * b * /* cool */ c" ].each do |input| context input do let!(:input) { input } it { expect(subject.to_json).to include("cool") } end end end
Version data entries
12 entries across 12 versions & 2 rubygems