Sha256: c50e0385fc0b5ea70a9bac171be5e7477992ff379d40395f86e73a69cc285d53
Contents?: true
Size: 435 Bytes
Versions: 1
Compression:
Stored size: 435 Bytes
Contents
require 'spec_helper' describe BoolExpr, 'the validation feature' do subject{ BoolExpr } it 'validates s-expressions' do subject.match?([:bool_lit, true]).should be_true subject.match?([:bool_lit, "x"]).should be_false end it 'validates s-expressions against specific rules' do subject[:bool_lit].match?([:bool_lit, true]).should be_true subject[:bool_and].match?([:bool_lit, true]).should be_false end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sexpr-0.6.0 | spec/integration/bool_expr/test_validation.rb |