|
| 1 | +%%% -*- coding: utf-8 -*- |
| 2 | +%%% -*- erlang-indent-level: 2 -*- |
| 3 | +%%% ------------------------------------------------------------------- |
| 4 | +%%% Copyright 2010-2011 Manolis Papadakis <[email protected]>, |
| 5 | +%%% Eirini Arvaniti <[email protected]> |
| 6 | +%%% and Kostis Sagonas <[email protected]> |
| 7 | +%%% |
| 8 | +%%% This file is part of PropEr. |
| 9 | +%%% |
| 10 | +%%% PropEr is free software: you can redistribute it and/or modify |
| 11 | +%%% it under the terms of the GNU General Public License as published by |
| 12 | +%%% the Free Software Foundation, either version 3 of the License, or |
| 13 | +%%% (at your option) any later version. |
| 14 | +%%% |
| 15 | +%%% PropEr is distributed in the hope that it will be useful, |
| 16 | +%%% but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 17 | +%%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 18 | +%%% GNU General Public License for more details. |
| 19 | +%%% |
| 20 | +%%% You should have received a copy of the GNU General Public License |
| 21 | +%%% along with PropEr. If not, see <http://www.gnu.org/licenses/>. |
| 22 | + |
| 23 | +%%% @copyright 2010-2011 Manolis Papadakis, Eirini Arvaniti and Kostis Sagonas |
| 24 | +%%% @version {@version} |
| 25 | +%%% @doc This module tests whether proper works with parse transforms disabled. |
| 26 | + |
| 27 | +-module(no_transforms). |
| 28 | +-export([prop_1/0]). |
| 29 | + |
| 30 | +-define(PROPER_NO_TRANS, true). |
| 31 | + |
| 32 | +-include_lib("proper/include/proper.hrl"). |
| 33 | + |
| 34 | +-type local_integer() :: integer(). |
| 35 | +-type local_float() :: float(). |
| 36 | + |
| 37 | +prop_1() -> ?FORALL(X, ?TYPE(local_integer() | local_float()), is_number(X)). |
0 commit comments