Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8728f5f

Browse files
committedMay 20, 2024·
Bump to crystal 1.12.1
1 parent 3be3fa7 commit 8728f5f

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed
 

‎.circleci/config.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ version: 2
33
jobs:
44
test-crystal: &test-template
55
docker:
6-
- image: crystallang/crystal:1.6.1
6+
- image: crystallang/crystal:1.12.1
77
steps:
88
- checkout
9-
test-crystal-1.6.1:
9+
test-crystal-1.12.1:
1010
<<: *test-template
1111
steps:
1212
- checkout
@@ -29,7 +29,7 @@ workflows:
2929
version: 2
3030
ci:
3131
jobs:
32-
- test-crystal-1.6.1
32+
- test-crystal-1.12.1
3333
nightly:
3434
triggers:
3535
- schedule:
@@ -38,4 +38,4 @@ workflows:
3838
branches:
3939
only: master
4040
jobs:
41-
- test-crystal-1.6.1
41+
- test-crystal-1.12.1

‎Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
SHARDS_BIN ?= $(shell which shards)
22
SHARD_BIN ?= ../../bin
3-
CRYSTAL_VERSION ?= 1.6.1
3+
CRYSTAL_VERSION ?= 1.12.1
44

55
build: bin/crytic
66
bin/crytic:

‎spec/mutant/select_reject_swap_spec.cr

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,22 @@ module Crytic
88
ast = ast_from("[1].select(&.nil?)")
99
transformed = ast.transform(Mutant::SelectRejectSwap.at(location_at(
1010
line_number: 1, column_number: 1, name_location: Crystal::Location.new(nil, 1, 5))))
11-
transformed.to_s.should eq "[1].reject do |__arg0|\n __arg0.nil?\nend"
11+
transformed.to_s.should eq "[1].reject() do |__arg0|\n __arg0.nil?\nend"
1212
end
1313

1414
it "switches reject calls for select calls" do
1515
ast = ast_from("[1].reject(&.nil?)")
1616
transformed = ast.transform(Mutant::SelectRejectSwap.at(location_at(
1717
line_number: 1, column_number: 1, name_location: Crystal::Location.new(nil, 1, 5))))
18-
transformed.to_s.should eq "[1].select do |__arg0|\n __arg0.nil?\nend"
18+
transformed.to_s.should eq "[1].select() do |__arg0|\n __arg0.nil?\nend"
1919
end
2020

2121
it "only applies to location" do
2222
ast = ast_from("[1].select(&.nil?)")
2323
transformed = ast.transform(Mutant::SelectRejectSwap.at(location_at(
2424
line_number: 100,
2525
column_number: 100)))
26-
transformed.to_s.should eq "[1].select do |__arg0|\n __arg0.nil?\nend"
26+
transformed.to_s.should eq "[1].select() do |__arg0|\n __arg0.nil?\nend"
2727
end
2828

2929
it "can cope with additional calls following" do

0 commit comments

Comments
 (0)
Please sign in to comment.