2018-09-12 14:21:24 +00:00
|
|
|
# frozen_string_literal: true
|
2018-09-12 13:15:43 +00:00
|
|
|
|
2016-03-19 15:13:05 +00:00
|
|
|
Mutant::Meta::Example.add :match_current_line do
|
2014-06-02 12:57:14 +00:00
|
|
|
source 'true if /foo/'
|
|
|
|
|
2014-06-05 16:37:31 +00:00
|
|
|
singleton_mutations
|
2014-06-02 12:57:14 +00:00
|
|
|
mutation 'false if /foo/'
|
|
|
|
mutation 'true if //'
|
|
|
|
mutation 'nil if /foo/'
|
|
|
|
mutation 'true if true'
|
|
|
|
mutation 'true if false'
|
|
|
|
mutation 'true if nil'
|
2016-03-06 21:19:32 +00:00
|
|
|
mutation 'true if /nomatch\A/'
|
2014-12-21 20:47:27 +00:00
|
|
|
mutation 'true'
|
2014-06-02 12:57:14 +00:00
|
|
|
end
|