Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support and test crystal 1.5.0 #93

Merged
merged 1 commit into from
Aug 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ version: 2
jobs:
test-crystal: &test-template
docker:
- image: crystallang/crystal:1.4.0
- image: crystallang/crystal:1.5.0
steps:
- checkout
test-crystal-1.4.0:
test-crystal-1.5.0:
<<: *test-template
steps:
- checkout
Expand All @@ -29,7 +29,7 @@ workflows:
version: 2
ci:
jobs:
- test-crystal-1.4.0
- test-crystal-1.5.0
nightly:
triggers:
- schedule:
Expand All @@ -38,4 +38,4 @@ workflows:
branches:
only: master
jobs:
- test-crystal-1.4.0
- test-crystal-1.5.0
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

- Support for crystal `1.5.0`. Resolves warnings.

## [8.0.1] - 2022-04-10

- Support for crystal `1.4.0`. Fixed a bug where the `NumberLiteralSignFlip` mutant would apply to unsigned integers
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SHARDS_BIN ?= $(shell which shards)
SHARD_BIN ?= ../../bin
CRYSTAL_VERSION ?= 1.4.0
CRYSTAL_VERSION ?= 1.5.0

build: bin/crytic
bin/crytic:
Expand Down
2 changes: 1 addition & 1 deletion spec/fake_generator.cr
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class FakeGenerator < Crytic::Generator::Generator
@neutral = FakeMutation.new.as(Crytic::Mutation::Mutation))
end

def mutations_for(source : Array(Crytic::Subject), specs : Array(String)) : Array(Crytic::Generator::MutationSet)
def mutations_for(subject : Array(Crytic::Subject), specs : Array(String)) : Array(Crytic::Generator::MutationSet)
[Crytic::Generator::MutationSet.new(
neutral: @neutral,
mutated: @mutations)]
Expand Down
4 changes: 2 additions & 2 deletions src/crytic/generator/in_memory_generator.cr
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ module Crytic::Generator
)
end

def mutations_for(sources : Array(Subject), specs : Array(String)) : Array(MutationSet)
sources
def mutations_for(subject : Array(Subject), specs : Array(String)) : Array(MutationSet)
subject
.map do |src|
MutationSet.new(
neutral: noop_mutation_for(src, specs),
Expand Down