Skip to content

Commit

Permalink
fix comparison when one of the term is a list and the other a binary
Browse files Browse the repository at this point in the history
  • Loading branch information
nniclausse committed Aug 24, 2012
1 parent 3e48368 commit 35f6d8b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tsung/ts_client.erl
Original file line number Diff line number Diff line change
Expand Up @@ -640,6 +640,10 @@ rel(R,A,B) when is_integer(B) and not is_integer(A)->
rel(R,A,list_to_binary(integer_to_list(B)));
rel(R,A,B) when is_integer(A) and not is_integer(B)->
rel(R,B,list_to_binary(integer_to_list(A)));
rel(R,A,B) when is_list(B) ->
rel(R,A,list_to_binary(B));
rel(R,A,B) when is_list(A) ->
rel(R,list_to_binary(A),B);
rel('eq',A,B) ->
A == B;
rel('neq',A,B) -> A /= B.
Expand Down

0 comments on commit 35f6d8b

Please sign in to comment.