Permalink
Browse files

Removed cap1h from main

  • Loading branch information...
1 parent e1d768e commit a0b04b83d6d4769916d0e52fb2544d5586bdc95f @Gianfrancoalongi committed Dec 4, 2012
Showing with 2 additions and 28 deletions.
  1. +0 −18 run1/src/mrz_tests.erl
  2. +2 −8 run1/src/mrz_transform.erl
  3. +0 −2 run1/test/mrz_transform_tests.erl
View
@@ -9,9 +9,7 @@ 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 input_from_json_test_function/1,
- fun input_from_json_and_cap1h_test_function/1,
fun input_from_json_and_cap2h_test_function/1,
fun input_from_json_and_rev2_test_function/1
]}.
@@ -32,14 +30,6 @@ input_from_json_and_cap2h_test_function(FileHandle) ->
?assertEqual(<<"hello world JSON FILE">>,Res)
end.
-input_from_json_and_cap1h_test_function(FileHandle) ->
- fun() ->
- group_leader(FileHandle,self()),
- mrz:run([{input_json,"./input_data.json"},cap1H]),
- {ok,Res} = file:read_file("test_res.txt"),
- ?assertEqual(<<"HELLO WORLD json file">>,Res)
- end.
-
input_from_json_test_function(FileHandle) ->
fun() ->
group_leader(FileHandle,self()),
@@ -48,14 +38,6 @@ input_from_json_test_function(FileHandle) ->
?assertEqual(<<"hello world json file">>,Res)
end.
-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()),
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),
@@ -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")).

0 comments on commit a0b04b8

Please sign in to comment.