@@ -192,11 +192,19 @@ defmodule Mneme.Diff.ASTTest do
192
192
auto_assert { :%{} , [ closing: [ line: 1 , column: 3 ] , line: 1 , column: _ ] , [ ] } <-
193
193
parse_string! ( "%{}" )
194
194
195
- auto_assert { :%{} , [ closing: [ line: 1 , column: 12 ] , line: 1 , column: _ ] ,
196
- [
197
- { { :atom , [ line: 1 , column: 3 ] , :foo } ,
198
- { :int , [ token: "1" , line: 1 , column: 11 ] , 1 } }
199
- ] } <- parse_string! ( "%{:foo => 1}" )
195
+ if Version . match? ( System . version ( ) , "~> 1.18.2" ) do
196
+ auto_assert { :%{} , [ closing: [ line: 1 , column: 12 ] , line: 1 , column: 1 ] ,
197
+ [
198
+ { { :atom , [ assoc: [ line: 1 , column: 8 ] , line: 1 , column: 3 ] , :foo } ,
199
+ { :int , [ token: "1" , line: 1 , column: 11 ] , 1 } }
200
+ ] } <- parse_string! ( "%{:foo => 1}" )
201
+ else
202
+ auto_assert { :%{} , [ closing: [ line: 1 , column: 12 ] , line: 1 , column: _ ] ,
203
+ [
204
+ { { :atom , [ line: 1 , column: 3 ] , :foo } ,
205
+ { :int , [ token: "1" , line: 1 , column: 11 ] , 1 } }
206
+ ] } <- parse_string! ( "%{:foo => 1}" )
207
+ end
200
208
201
209
auto_assert { :%{} , [ closing: [ line: 1 , column: 9 ] , line: 1 , column: _ ] ,
202
210
[
0 commit comments