@@ -78,18 +78,20 @@ defmodule CodeTest do
7878 end
7979 end
8080
81- test "raises streamlined argument errors" do
82- assert_raise ArgumentError ,
83- ~r" argument error while evaluating at line 1" ,
84- fn -> Code . eval_string ( "a <> b" , a: :a , b: :b ) end
85-
86- assert_raise ArgumentError ,
87- ~r" argument error while evaluating example.ex at line 1" ,
88- fn -> Code . eval_string ( "a <> b" , [ a: :a , b: :b ] , file: "example.ex" ) end
89-
90- assert_raise ArgumentError ,
91- ~r" argument error while evaluating example.ex between lines 1 and 2" ,
92- fn -> Code . eval_string ( "a <>\n b" , [ a: :a , b: :b ] , file: "example.ex" ) end
81+ if System . otp_release ( ) < "25" do
82+ test "raises streamlined argument errors" do
83+ assert_raise ArgumentError ,
84+ ~r" argument error while evaluating at line 1" ,
85+ fn -> Code . eval_string ( "a <> b" , a: :a , b: :b ) end
86+
87+ assert_raise ArgumentError ,
88+ ~r" argument error while evaluating example.ex at line 1" ,
89+ fn -> Code . eval_string ( "a <> b" , [ a: :a , b: :b ] , file: "example.ex" ) end
90+
91+ assert_raise ArgumentError ,
92+ ~r" argument error while evaluating example.ex between lines 1 and 2" ,
93+ fn -> Code . eval_string ( "a <>\n b" , [ a: :a , b: :b ] , file: "example.ex" ) end
94+ end
9395 end
9496 end
9597
0 commit comments