Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
*.o
*.so
*.swp
.rebar/
build/*
^build$
Emakefile
Expand All @@ -15,3 +16,10 @@ ebin/*.beam
logs/*
include/hamcrest.hrl
qc.hrl
deps/
ct_*/
all_runs.html
ct_*
jquery-latest.js
jquery.tablesorter.min.js
variables-ct@localhost
16 changes: 13 additions & 3 deletions test.config
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@

{cover_enabled, true}.

{deps, [
%% TODO: bind to a specific commit or tag instead of 'master'
{proper, ".*", {git, "http://github.com/manopapad/proper.git", "v1.1"}}
{proper, "1.*", {git, "http://github.com/manopapad/proper.git", "v1.2"}}
]}.

{erl_opts, [
debug_info,
fail_on_warning,
{src_dirs, ["test"]},
{platform_define, "^[0-9]+", namespaced_types}
]}.

{validate_app_modules, false}.

{ct_extra_params, "-no_auto_compile"}.

{plugin_dir, "priv/build/plugins"}.
{plugins, [eqc_resolver]}.
4 changes: 2 additions & 2 deletions test/hamcrest_matchers_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ is_not_evaluates_to_logical_negation_of_underlying_matcher(_) ->
?EQC(P).

is_not_provides_convenient_shortcut_for_not_equal_to(_) ->
P = ?FORALL({X, Y}, {binary(), binary()},
P = ?FORALL({X, _Y}, {binary(), binary()},
begin
#'hamcrest.matchspec'{matcher=F1} = equal_to(X),
#'hamcrest.matchspec'{matcher=F2} = is_not(X),
Expand Down Expand Up @@ -240,7 +240,7 @@ ends_with_should_only_match_last_portion_of_string(_) ->
?IMPLIES(length(Xs) > 0,
begin
Y = round(length(Xs) / 2),
LStr = string:left(Xs, Y),
_LStr = string:left(Xs, Y),
RStr = string:right(Xs, Y),
case (assert_that(Xs, ends_with(RStr))) of
true -> true;
Expand Down