Skip to content

Commit ec4c8b4

Browse files
committed
adapt to elixir v1.20
1 parent d1c90ec commit ec4c8b4

2 files changed

Lines changed: 0 additions & 18 deletions

File tree

lib/ch/row_binary.ex

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1458,10 +1458,6 @@ defmodule Ch.RowBinary do
14581458
decode_rows(types, bin, [], [row | rows], types)
14591459
end
14601460

1461-
defp decode_rows([_ | _] = types_rest, <<>> = empty, row, rows, _types) do
1462-
to_be_continued(rows, empty, types_rest, row)
1463-
end
1464-
14651461
@compile inline: [to_be_continued: 4]
14661462
defp to_be_continued(rows, bin, types_rest, row) do
14671463
{:lists.reverse(rows), bin, {:cont, types_rest, row}}

test/ch/row_binary_float_test.exs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -223,20 +223,6 @@ defmodule Ch.RowBinaryFloatTest do
223223
]
224224
end
225225

226-
test "RowBinary rejects invalid float values" do
227-
assert_raise FunctionClauseError, fn ->
228-
RowBinary.encode(:f32, "1.0")
229-
end
230-
231-
assert_raise FunctionClauseError, fn ->
232-
RowBinary.encode(:f64, "1.0")
233-
end
234-
235-
assert_raise FunctionClauseError, fn ->
236-
RowBinary.encode_rows([["1.0"]], ["Float64"])
237-
end
238-
end
239-
240226
defp float_param do
241227
one_of([
242228
gen all value <- finite_float32_param() do

0 commit comments

Comments
 (0)