@@ -94,11 +94,11 @@ defmodule MyXQL.Protocol.ValueTest do
94
94
assert Float . round ( insert_and_get ( c , "my_unsigned_float" , 10.0 ) , 2 ) == 10.0
95
95
assert Float . round ( insert_and_get ( c , "my_unsigned_float" , 13.37 ) , 2 ) == 13.37
96
96
97
- assert_raise ArgumentError , ~r " cannot parse float/double" , fn ->
97
+ assert_raise ArgumentError , ~s ( cannot decode text value "10.0ABC" to float/double) , fn ->
98
98
MyXQL.Protocol.Values . decode_text_value ( "10.0ABC" , :float )
99
99
end
100
100
101
- assert_raise ArgumentError , ~r " cannot parse float/double" , fn ->
101
+ assert_raise ArgumentError , ~s ( cannot decode text value "ABC" to float/double) , fn ->
102
102
MyXQL.Protocol.Values . decode_text_value ( "ABC" , :float )
103
103
end
104
104
end
@@ -111,11 +111,11 @@ defmodule MyXQL.Protocol.ValueTest do
111
111
assert_roundtrip ( c , "my_unsigned_double" , 10.0 )
112
112
assert_roundtrip ( c , "my_unsigned_double" , 13.37 )
113
113
114
- assert_raise ArgumentError , ~r " cannot parse float/double" , fn ->
115
- MyXQL.Protocol.Values . decode_text_value ( "10.0.ABC " , :float )
114
+ assert_raise ArgumentError , ~s ( cannot decode text value "10.0ABC" to float/double) , fn ->
115
+ MyXQL.Protocol.Values . decode_text_value ( "10.0ABC " , :float )
116
116
end
117
117
118
- assert_raise ArgumentError , ~r " cannot parse float/double" , fn ->
118
+ assert_raise ArgumentError , ~s ( cannot decode text value "ABC" to float/double) , fn ->
119
119
MyXQL.Protocol.Values . decode_text_value ( "ABC" , :float )
120
120
end
121
121
end
0 commit comments