Sha256: 75335023bd7fef9dc3a208b93a60d9376713ed64bfd1a80e736f01e9afec5554
Contents?: true
Size: 724 Bytes
Versions: 6
Compression:
Stored size: 724 Bytes
Contents
#! /usr/bin/env ruby -S rspec require 'spec_helper_acceptance' describe 'intersection function', :unless => UNSUPPORTED_PLATFORMS.include?(fact('operatingsystem')) do describe 'success' do it 'intersections arrays' do pp = <<-EOS $a = ['aaa','bbb','ccc'] $b = ['bbb','ccc','ddd','eee'] $c = ['bbb','ccc'] $o = intersection($a,$b) if $o == $c { notify { 'output correct': } } EOS apply_manifest(pp, :catch_failures => true) do |r| expect(r.stdout).to match(/Notice: output correct/) end end it 'intersections empty arrays' end describe 'failure' do it 'handles improper argument counts' it 'handles non-arrays' end end
Version data entries
6 entries across 6 versions & 1 rubygems