-
Notifications
You must be signed in to change notification settings - Fork 167
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include
map()
as a PropEr type generator
While at it, remove the `?LAZY()` call from its body and also place some generators in the right -or at least same- order in proper.hrl and in proper_types.erl
- Loading branch information
Showing
2 changed files
with
15 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
%%% -*- coding: utf-8; erlang-indent-level: 2 -*- | ||
%%% ------------------------------------------------------------------- | ||
%%% Copyright 2010-2021 Manolis Papadakis <[email protected]>, | ||
%%% Copyright 2010-2022 Manolis Papadakis <[email protected]>, | ||
%%% Eirini Arvaniti <[email protected]>, | ||
%%% and Kostis Sagonas <[email protected]> | ||
%%% | ||
|
@@ -19,7 +19,7 @@ | |
%%% You should have received a copy of the GNU General Public License | ||
%%% along with PropEr. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
%%% @copyright 2010-2021 Manolis Papadakis, Eirini Arvaniti, and Kostis Sagonas | ||
%%% @copyright 2010-2022 Manolis Papadakis, Eirini Arvaniti, and Kostis Sagonas | ||
%%% @version {@version} | ||
%%% @author Manolis Papadakis | ||
%%% @doc User header file: This file should be included in each file containing | ||
|
@@ -58,8 +58,8 @@ | |
|
||
-import(proper_types, [integer/0, non_neg_integer/0, pos_integer/0, | ||
neg_integer/0, range/2, float/0, non_neg_float/0, | ||
number/0, boolean/0, byte/0, char/0, list/0, tuple/0, | ||
string/0, wunion/1, term/0, timeout/0, arity/0]). | ||
number/0, boolean/0, arity/0, byte/0, char/0, list/0, | ||
tuple/0, map/0, string/0, term/0, timeout/0, wunion/1]). | ||
-import(proper_types, [int/0, nat/0, largeint/0, real/0, bool/0, choose/2, | ||
elements/1, oneof/1, frequency/1, return/1, default/2, | ||
orderedlist/1, function0/1, function1/1, function2/1, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters