Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit cd7b96b

Browse files
committed
disambiguate function calls in property tests
1 parent b8eea7c commit cd7b96b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

test/order_test.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ defmodule Sqlitex.OrderTest do
33
use ExCheck
44

55
property :ordering_query_results do
6-
for_all {x, y} in {int, int} do
6+
for_all {x, y} in {int(), int()} do
77
{:ok, db} = Sqlitex.open(":memory:")
88
:ok = Sqlitex.exec(db, "CREATE TABLE t (a INTEGER)")
99
:ok = Sqlitex.exec(db, "INSERT INTO t (a) VALUES #{(x..y) |> Enum.map(&( "(#{&1})" )) |> Enum.join(",")}")

test/sum_test.exs

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ defmodule Sqlitex.SumTest do
33
use ExCheck
44

55
property :sum_integers do
6-
for_all nums in such_that(ns in list(int) when length(ns) > 0) do
6+
for_all nums in such_that(ns in list(int()) when length(ns) > 0) do
77
{:ok, db} = Sqlitex.open(":memory:")
88
:ok = Sqlitex.exec(db, "CREATE TABLE t (a INTEGER)")
99
Enum.each(nums, fn(num) ->

0 commit comments

Comments
 (0)