Sha256: 1f72e9d78fbbedb08dff206744febd8b25c08e298b32fc82bda5c6c84946683c

Contents?: true

Size: 339 Bytes

Versions: 16

Compression:

Stored size: 339 Bytes

Contents

require 'spec_helper'
require 'dentaku/ast/numeric'

require 'dentaku/token'

describe Dentaku::AST::Numeric do
  subject { described_class.new(Dentaku::Token.new(:numeric, 5)) }

  it 'has numeric type' do
    expect(subject.type).to eq :numeric
  end

  it 'has no dependencies' do
    expect(subject.dependencies).to be_empty
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
dentaku-3.3.0 spec/ast/numeric_spec.rb
dentaku-3.2.1 spec/ast/numeric_spec.rb
dentaku-3.2.0 spec/ast/numeric_spec.rb
dentaku-3.1.0 spec/ast/numeric_spec.rb
dentaku-3.0.0 spec/ast/numeric_spec.rb
dentaku-2.0.11 spec/ast/numeric_spec.rb
dentaku-2.0.10 spec/ast/numeric_spec.rb
dentaku-2.0.9 spec/ast/numeric_spec.rb
dentaku-2.0.8 spec/ast/numeric_spec.rb
dentaku-2.0.7 spec/ast/numeric_spec.rb
dentaku-2.0.6 spec/ast/numeric_spec.rb
dentaku-2.0.5 spec/ast/numeric_spec.rb
dentaku-2.0.4 spec/ast/numeric_spec.rb
dentaku-2.0.3 spec/ast/numeric_spec.rb
dentaku-2.0.2 spec/ast/numeric_spec.rb
dentaku-2.0.1 spec/ast/numeric_spec.rb