Sha256: f5092cb9743c90b233b24f36f8adf18d1896f8c77a47aa6461f0d87f96cb8276
Contents?: true
Size: 429 Bytes
Versions: 5
Compression:
Stored size: 429 Bytes
Contents
require 'spec_helper' module Sexpr::Grammar describe Tagging, "looks_a_sexpr" do include Tagging it 'recognizes s-expressions' do looks_a_sexpr?([:lit]).should be_true end it 'does not recognize empty arrays' do looks_a_sexpr?([]).should be_false end it 'does not recognize others' do looks_a_sexpr?(nil).should be_false looks_a_sexpr?(:lit).should be_false end end end
Version data entries
5 entries across 5 versions & 1 rubygems