Sha256: 9a6504c4070a1028772b5e7f1499db24478159cc04d65580151fd7930cc1e127

Contents?: true

Size: 435 Bytes

Versions: 5

Compression:

Stored size: 435 Bytes

Contents

require 'spec_helper'

describe "The language" do
  
  include Trxl::SpecHelper
  
  before(:each) do
    @parser = Trxl::Calculator.new
  end
  
  it "should evaluate the constant 'NULL' to nil" do
    eval("NULL").should be_nil
  end

  it "should evaluate the constant 'TRUE' to true" do
    eval("TRUE").should be_true
  end
  
  it "should evaluate the constant 'FALSE' to false" do
    eval("FALSE").should be_false
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
trxl-0.1.11 spec/trxl/constants_spec.rb
trxl-0.1.10 spec/trxl/constants_spec.rb
trxl-0.1.9 spec/trxl/constants_spec.rb
trxl-0.1.8 spec/trxl/constants_spec.rb
trxl-0.1.5 spec/trxl/constants_spec.rb