Sha256: 914bdedda3ea028b1f33b5fa286f12a9d3ce08daec56b729e10c686fc965cc3b
Contents?: true
Size: 411 Bytes
Versions: 5
Compression:
Stored size: 411 Bytes
Contents
require 'spec_helper' describe "The parser" do include Trxl::SpecHelper before :each do @parser = Trxl::Calculator.new end it "should return NULL for an empty string" do program = "" eval(program).should == nil end it "should ignore multiple ';' characters (like ;;;)" do eval(";").should == nil eval(";;").should == nil eval("1+1;;").should == 2 end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
trxl-0.1.11 | spec/trxl/common_spec.rb |
trxl-0.1.10 | spec/trxl/common_spec.rb |
trxl-0.1.9 | spec/trxl/common_spec.rb |
trxl-0.1.8 | spec/trxl/common_spec.rb |
trxl-0.1.5 | spec/trxl/common_spec.rb |