Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'remove_cap1h' into remove_json_remove_cap1h

Conflicts:
	run1/src/mrz_tests.erl
  • Loading branch information...
commit cdd2b4ce3e2c51de60a9c0f10f4a40cd60dc8abb 2 parents 3b5c76e + a0b04b8
Gianfranco Alongi authored
11 run1/src/mrz_tests.erl
View
@@ -8,18 +8,9 @@ mrz_options_test_() ->
[
fun no_option_test_function/1,
fun rev2_test_function/1,
- fun cap2H_test_function/1,
- fun cap1H_test_function/1
+ fun cap2H_test_function/1
]}.
-cap1H_test_function(FileHandle) ->
- fun() ->
- group_leader(FileHandle,self()),
- mrz:run([cap1H]),
- {ok,Res} = file:read_file("test_res.txt"),
- ?assertEqual(<<"HELLO world">>,Res)
- end.
-
cap2H_test_function(FileHandle) ->
fun() ->
group_leader(FileHandle,self()),
10 run1/src/mrz_transform.erl
View
@@ -1,7 +1,6 @@
-module(mrz_transform).
--export([cap2H/1,
- cap1H/1
- ]).
+-export([cap2H/1
+ ]).
-export([rev2/1,
id/1
]).
@@ -20,11 +19,6 @@ rev2(String) ->
],
string:join(List," ").
-cap1H(String) ->
- List = string:tokens(String," "),
- {A,B} = lists:split(round(length(List)/2),List),
- string:join(lists:map(fun string:to_upper/1,A)++B," ").
-
cap2H(String) ->
List = string:tokens(String," "),
{A,B} = lists:split(round(length(List)/2),List),
2  run1/test/mrz_transform_tests.erl
View
@@ -10,5 +10,3 @@ cap2H_test() ->
id_test() ->
?assertEqual("first second",mrz_transform:id("first second")).
-cap1H_test() ->
- ?assertEqual("FIRST second",mrz_transform:cap1H("first second")).
Please sign in to comment.
Something went wrong with that request. Please try again.