mirror of
https://github.com/correl/rebar.git
synced 2024-12-17 19:16:11 +00:00
13 lines
458 B
Erlang
13 lines
458 B
Erlang
|
-module(codepath_tests).
|
||
|
-include_lib("eunit/include/eunit.hrl").
|
||
|
|
||
|
codepath_test() ->
|
||
|
?assertEqual({module, codepath}, code:ensure_loaded(codepath)),
|
||
|
?assertEqual({module, foodep}, code:ensure_loaded(foodep)),
|
||
|
?assertEqual({module, bazdep}, code:ensure_loaded(bazdep)),
|
||
|
?assert(codepath:codepath()).
|
||
|
|
||
|
unuseddep_test() ->
|
||
|
?assertEqual(non_existing, code:which(unuseddep)),
|
||
|
?assertEqual({error, nofile}, code:ensure_loaded(unuseddep)).
|