michalmuskala / jason

A blazing fast JSON parser and generator in pure Elixir.
Other
1.6k stars 170 forks source link

Error in /home/robert/gh/elixir/forx/jason/test/decode_test.exs#102 #99

Closed RobertDober closed 4 years ago

RobertDober commented 4 years ago

IANM this has been overlooked, if not please feel free to ignore my PR.

RobertDober commented 4 years ago

What is the meaning of this? Who's right, my machine or Travis?

Here's a snapshot

git log --> 5ba5a6e (HEAD -> master, origin/master, origin/HEAD) Error in /home/robert/gh/elixir/forx/jason/test/decode_test.exs#102

elixir --version && uname -a [18:39:59] Erlang/OTP 22 [erts-10.5.4] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe]

Elixir 1.9.4 (compiled with Erlang/OTP 20) Linux roma 4.10.0-38-generic #42~16.04.1-Ubuntu SMP Tue Oct 10 16:32:20 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

mix test [18:40:16] ........................................................................................................................................................................ ........................................................................................................................................................................ ..........................................................................................

Finished in 1.6 seconds 16 doctests, 9 properties, 401 tests, 0 failures

RobertDober commented 4 years ago

ok found it, it is the erlang version, I have the same behaviour as Travis with asdf local erlang 20.2.3 [18:42:07]

╭─>robert@roma ~/gh/elixir/forx/jason ❰1.9.2➤20.2.3❱ ⬡ 10.15.1 [±master ●] ╰─> λ mix test [18:42:19] ==> stream_data Compiling 3 files (.ex) Generated stream_data app ==> decimal Compiling 1 file (.ex) Generated decimal app ==> dialyxir Compiling 5 files (.ex) Generated dialyxir app ==> jason Compiling 8 files (.ex) Generated jason app .......

1) test copying strings on decode (Jason.DecodeTest) test/decode_test.exs:88 Assertion with == failed code: assert :binary.referenced_byte_size(key) == 3 left: 14 right: 3 stacktrace: test/decode_test.exs:102: (test)

........................................................................................................................................................................ ........................................................................................................................................................................ ..................................................................................

Finished in 1.2 seconds 16 doctests, 9 properties, 401 tests, 1 failure

RobertDober commented 4 years ago

shall I open an issue @michalmuskala ?