Sha256: 9409cb63a8af3b95bd5f5c97378617c995230d996b0c4b28d41f3013fd3341c2
Contents?: true
Size: 459 Bytes
Versions: 5
Compression:
Stored size: 459 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Algebra::Product do context 'Commutative property' do subject { left.product(right) } let(:left) { Relation.new([ [ :id, Integer ] ], [ [ 1 ], [ 2 ] ]) } let(:right) { Relation.new([ [ :name, String ] ], [ [ 'Dan Kubb' ], [ 'Alex Kubb' ] ]) } it 'does not matter which order the relations are multiplied in' do should == right.product(left) end end end
Version data entries
5 entries across 5 versions & 2 rubygems