Sha256: b4885e90f880a4fe4a30fbf50cb70eec705eec785f14ee1de31a97415a042a1e
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