free_mutant/meta/date.rb
John Backus 7931a01476 Add mutation Date.parse -> other parse methods
- Adds receiver specific selector mutations
- Closes #432
2015-10-09 10:58:31 -07:00

57 lines
1.3 KiB
Ruby

Mutant::Meta::Example.add do
source 'Date.parse(nil)'
singleton_mutations
mutation 'Date.parse'
mutation 'self.parse(nil)'
mutation 'Date'
mutation 'Date.jd(nil)'
mutation 'Date.civil(nil)'
mutation 'Date.strptime(nil)'
mutation 'Date.iso8601(nil)'
mutation 'Date.rfc3339(nil)'
mutation 'Date.xmlschema(nil)'
mutation 'Date.rfc2822(nil)'
mutation 'Date.rfc822(nil)'
mutation 'Date.httpdate(nil)'
mutation 'Date.jisx0301(nil)'
end
Mutant::Meta::Example.add do
source '::Date.parse(nil)'
singleton_mutations
mutation '::Date.parse'
mutation 'Date.parse(nil)'
mutation 'self.parse(nil)'
mutation '::Date'
mutation '::Date.jd(nil)'
mutation '::Date.civil(nil)'
mutation '::Date.strptime(nil)'
mutation '::Date.iso8601(nil)'
mutation '::Date.rfc3339(nil)'
mutation '::Date.xmlschema(nil)'
mutation '::Date.rfc2822(nil)'
mutation '::Date.rfc822(nil)'
mutation '::Date.httpdate(nil)'
mutation '::Date.jisx0301(nil)'
end
Mutant::Meta::Example.add do
source 'Date.iso8601(nil)'
singleton_mutations
mutation 'Date.iso8601'
mutation 'self.iso8601(nil)'
mutation 'Date'
end
Mutant::Meta::Example.add do
source 'Foo::Date.parse(nil)'
singleton_mutations
mutation 'Foo::Date.parse'
mutation 'Foo::Date'
mutation 'Date.parse(nil)'
mutation 'self.parse(nil)'
end