Sha256: 642d55a67d5ec1eb172db540352f441c24f18ca9041b7a0d9e99c4ca36f20aba
Contents?: true
Size: 578 Bytes
Versions: 29
Compression:
Stored size: 578 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Mutant::Mutator::Node::Literal, 'array' do let(:source) { '[true, false]' } let(:mutations) do mutations = [] # Literal replaced with nil mutations << 'nil' # Mutation of each element in array mutations << '[nil, false]' mutations << '[false, false]' mutations << '[true, nil]' mutations << '[true, true]' # Remove each element of array once mutations << '[true]' mutations << '[false]' # Empty array mutations << '[]' end it_should_behave_like 'a mutator' end
Version data entries
29 entries across 29 versions & 1 rubygems