Skip to content

Commit

Permalink
add failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslandoga committed Jan 4, 2024
1 parent 6965b03 commit 712788f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/ch/query_string_test.exs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
defmodule Ch.QueryStringTest do
use ExUnit.Case, async: true

setup do
{:ok, conn: start_supervised!({Ch, database: Ch.Test.database()})}
end

test "binaries are escaped properly", %{conn: conn} do

Check failure on line 8 in test/ch/query_string_test.exs

View workflow job for this annotation

GitHub Actions / mix (1.14, 25, 23.3.7.5, UTC)

test binaries are escaped properly (Ch.QueryStringTest)

Check failure on line 8 in test/ch/query_string_test.exs

View workflow job for this annotation

GitHub Actions / mix (1.14, 26, 23.3.7.5, UTC)

test binaries are escaped properly (Ch.QueryStringTest)

Check failure on line 8 in test/ch/query_string_test.exs

View workflow job for this annotation

GitHub Actions / mix (1.15, 25, 23.3.7.5, UTC)

test binaries are escaped properly (Ch.QueryStringTest)

Check failure on line 8 in test/ch/query_string_test.exs

View workflow job for this annotation

GitHub Actions / mix (1.15, 26, 23.3.7.5, UTC)

test binaries are escaped properly (Ch.QueryStringTest)

Check failure on line 8 in test/ch/query_string_test.exs

View workflow job for this annotation

GitHub Actions / mix (1.16, 25, 23.3.7.5, UTC)

test binaries are escaped properly (Ch.QueryStringTest)

Check failure on line 8 in test/ch/query_string_test.exs

View workflow job for this annotation

GitHub Actions / mix (1.16, 26, 23.3.7.5, UTC)

test binaries are escaped properly (Ch.QueryStringTest)

Check failure on line 8 in test/ch/query_string_test.exs

View workflow job for this annotation

GitHub Actions / mix (1.16, 26, 23.3.7.5, Europe/Berlin)

test binaries are escaped properly (Ch.QueryStringTest)
assert Ch.query!(conn, "select {s:String}", %{"s" => "\\"}).rows == []
end
end

0 comments on commit 712788f

Please sign in to comment.