Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

15 linhas
391 B

  1. % This file is part of Jiffy released under the MIT license.
  2. % See the LICENSE file for more information.
  3. -module(jiffy_13_whitespace_tests).
  4. -include_lib("eunit/include/eunit.hrl").
  5. trailing_whitespace_test_() ->
  6. Str = [<<"{\"a\":\"b\"}">>, gen_ws(2040)],
  7. Obj = {[{<<"a">>, <<"b">>}]},
  8. ?_assertEqual(Obj, jiffy:decode(Str)).
  9. gen_ws(N) ->
  10. [" " || _ <- lists:seq(1, N)].