Sha256: dd917fb6e838a7cb87aea07710bb8f15619a3eecbdf625615073c43559491d66

Contents?: true

Size: 456 Bytes

Versions: 1

Compression:

Stored size: 456 Bytes

Contents

require 'spec_helper'
module Alf
  describe Viewpoint, "NATIVE" do

    subject{ Viewpoint::NATIVE }

    it{ should be_a(Module) }

    it 'converts unknown names as named operands' do
      subject.parse{
        suppliers
      }.should be_a(Algebra::Operand::Named)
    end

    it 'should allow being used in a Lispy' do
      Lang::Parser::Lispy.new([subject]).parse{
        suppliers
      }.should be_a(Algebra::Operand::Named)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alf-core-0.15.0 spec/unit/alf-viewpoint/test_native_const.rb