Sha256: 4e17d068d0bf6a604396caf6be69886451eacc962d78998ff64b5e13baf4cffa

Contents?: true

Size: 340 Bytes

Versions: 13

Compression:

Stored size: 340 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

13 entries across 13 versions & 2 rubygems

Version Path
dentaku-3.5.4 spec/ast/numeric_spec.rb
dentaku-3.5.3 spec/ast/numeric_spec.rb
dentaku-3.5.2 spec/ast/numeric_spec.rb
dentaku_zevo-3.5.2 spec/ast/numeric_spec.rb
dentaku-3.5.1 spec/ast/numeric_spec.rb
dentaku-3.5.0 spec/ast/numeric_spec.rb
dentaku-3.4.2 spec/ast/numeric_spec.rb
dentaku-3.4.1 spec/ast/numeric_spec.rb
dentaku-3.4.0 spec/ast/numeric_spec.rb
dentaku-3.3.4 spec/ast/numeric_spec.rb
dentaku-3.3.3 spec/ast/numeric_spec.rb
dentaku-3.3.2 spec/ast/numeric_spec.rb
dentaku-3.3.1 spec/ast/numeric_spec.rb