Skip to content
This repository has been archived by the owner on Apr 27, 2021. It is now read-only.

mix test failed using the current master branch of elixir #87

Closed
matsubara0507 opened this issue Oct 4, 2017 · 0 comments
Closed

mix test failed using the current master branch of elixir #87

matsubara0507 opened this issue Oct 4, 2017 · 0 comments

Comments

@matsubara0507
Copy link
Contributor

current master brunch is https://github.com/elixir-lang/elixir/tree/fba7e5c240b114a5edcc52ec6f438f9d20dcd29f

~/exfmt# mix test
Compiling 14 files (.ex)
Generated exfmt app
.................

  1) doctest Exfmt.Algebra.group/1 (8) (Exfmt.AlgebraTest)
     test/exfmt/algebra_test.exs:3
     Doctest failed
     code: Inspect.Algebra.format(doc, 6) === ["Hello,", "\n", "A", " ", "B"]
     left: ["Hello,", "\n", "A", "\n", "B"]
     stacktrace:
       lib/exfmt/algebra.ex:355: Exfmt.Algebra (module)

.

  2) doctest Exfmt.Algebra.nest/2 (9) (Exfmt.AlgebraTest)
     test/exfmt/algebra_test.exs:3
     Doctest failed
     code: doc = Inspect.Algebra.nest(Inspect.Algebra.glue("hello", "world"), 5)
            Inspect.Algebra.format(doc, 5) === ["hello", "\n     ", "world"]
     left: ["hello", " ", "world"]
     stacktrace:
       lib/exfmt/algebra.ex:326: Exfmt.Algebra (module)

.

  3) doctest Exfmt.Algebra.surround/3 (10) (Exfmt.AlgebraTest)
     test/exfmt/algebra_test.exs:3
     Doctest failed
     code: doc = Inspect.Algebra.surround("[", Inspect.Algebra.glue("a", "b"), "]")
            Inspect.Algebra.format(doc, 3) === ["[", "a", "\n ", "b", "]"]
     left: ["[", "a", " ", "b", "]"]
     stacktrace:
       lib/exfmt/algebra.ex:392: Exfmt.Algebra (module)

.........

  4) doctest Exfmt.Algebra.break/2 (2) (Exfmt.AlgebraTest)
     test/exfmt/algebra_test.exs:3
     Doctest failed
     code: break = Inspect.Algebra.break("\t")
            doc = Inspect.Algebra.concat([String.duplicate("a", 20), break, "b"])
            Inspect.Algebra.format(doc, 10) === ["aaaaaaaaaaaaaaaaaaaa", "\n", "b"]
     left: ["aaaaaaaaaaaaaaaaaaaa", "\t", "b"]
     stacktrace:
       lib/exfmt/algebra.ex:166: Exfmt.Algebra (module)

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

  5) test heredoc with preceeding spaces (Exfmt.Integration.BinaryTest)
     test/exfmt/integration/binary_test.exs:108
     Assertion with == failed
     code:  assert expected == output
     left:  "\"\"\"\none\n  two\n\"\"\"\n"
     right: "\"one\\n  two\\n\"\n"
     stacktrace:
       test/exfmt/integration/binary_test.exs:109: (test)

........

  6) test 2 line heredoc (Exfmt.Integration.BinaryTest)
     test/exfmt/integration/binary_test.exs:104
     Assertion with == failed
     code:  assert expected == output
     left:  "\"\"\"\none\ntwo\n\"\"\"\n"
     right: "\"one\\ntwo\\n\"\n"
     stacktrace:
       test/exfmt/integration/binary_test.exs:105: (test)



  7) test empty heredoc (Exfmt.Integration.BinaryTest)
     test/exfmt/integration/binary_test.exs:96
     Assertion with == failed
     code:  assert expected == output
     left:  "\"\"\"\n\"\"\"\n"
     right: "\"\"\n"
     stacktrace:
       test/exfmt/integration/binary_test.exs:97: (test)

...

  8) test 1 line heredoc (Exfmt.Integration.BinaryTest)
     test/exfmt/integration/binary_test.exs:100
     Assertion with == failed
     code:  assert expected == output
     left:  "\"\"\"\none\n\"\"\"\n"
     right: "\"one\\n\"\n"
     stacktrace:
       test/exfmt/integration/binary_test.exs:101: (test)

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

  9) test comments (Exfmt.Integration.CommentsTest)
     test/exfmt/integration/comments_test.exs:5
     Assertion with == failed
     code:  assert expected == output
     left:  "# Hello\n"
     right: "__block__()\n# Hello\n"
     stacktrace:
       test/exfmt/integration/comments_test.exs:8: (test)

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

 10) test chars (Exfmt.Integration.BasicsTest)
     test/exfmt/integration/basics_test.exs:80
     Assertion with == failed
     code:  assert expected == output
     left:  "?a\n"
     right: "97\n"
     stacktrace:
       test/exfmt/integration/basics_test.exs:81: (test)

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

 11) test comments within list (Exfmt.Integration.BasicsTest)
     test/exfmt/integration/basics_test.exs:379
     Assertion with == failed
     code:  assert expected == output
     left:  "[\n  :one_one_one,\n  # hi\n  :two_two_two,\n]\n"
     right: "[:one_one_one, :two_two_two]\n# hi\n"
     stacktrace:
       test/exfmt/integration/basics_test.exs:380: (test)

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

Finished in 1.7 seconds
33 doctests, 256 tests, 11 failures, 2 skipped

Randomized with seed 806669
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants