Sha256: affcc229f190cb608d7ffbcb567f5de6abfd88a804b6634247d0055e5678c0be
Contents?: true
Size: 553 Bytes
Versions: 5
Compression:
Stored size: 553 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Mutant::Mutator::Node::Generic, 'op_asgn' do let(:source) { '@a.b += 1' } let(:mutations) do mutations = [] mutations << '@a.b += -1' mutations << '@a.b += 2' mutations << '@a.b += 0' mutations << '@a.b += nil' mutations << 'nil.b += 1' mutations << 'nil' # TODO: fix invalid AST # This should not get emitted as invalid AST with valid unparsed source mutations << s(:op_asgn, s(:ivar, :@a), :+, s(:int, 1)) end it_should_behave_like 'a mutator' end
Version data entries
5 entries across 5 versions & 1 rubygems