Commit Graph
12463 Commits
Author SHA1 Message Date
Tobiasz Małecki a3d7c1928e Added missing specs for Node get_cookie/0 and set_cookie/2 (#8719) 2019-01-26 17:22:04 +01:00
Fernando Tapia Rico 11eb44c3f8 Use default args in Calendar.ISO.*_to_string/* (#8707) 2019-01-26 09:21:34 +01:00
Tobiasz Małecki 1975a4f54c Mix.Compilers.Erlang.compile/6 example improvement (#8712) 2019-01-26 09:14:29 +01:00
Tobiasz Małecki c870049832 Mix.Shell.Process docs examples formatting (#8715) 2019-01-26 00:17:08 +01:00
Tobiasz Małecki 1974a8f1ba Mix.Task moduledoc eample formatting (#8713) 2019-01-26 00:09:56 +01:00
Tobiasz Małecki 440aa36764 Mix.Tasks.Test moduledoc example formatting (#8714) 2019-01-26 00:09:34 +01:00
Tobiasz Małecki b007c9302a Add spec for Mix.Project.consolidation_path/1 (#8710) 2019-01-26 00:05:39 +01:00
Tobiasz Małecki f7536caec7 Improve the docs for ExUnit.Case (#8709) 2019-01-25 18:27:47 +01:00
Tobiasz Małecki fa2f599f08 ExUnit.Callbacks moduledoc example improvement (#8708) 2019-01-25 14:55:02 +01:00
Fernando Tapia Rico 38969f180b Add missing @doc :since to Calendar.ISO functions (#8703) 2019-01-25 10:20:26 +01:00
José Valim 1a6b344ba8 Do not rely on timezone database for DateTime.now
The FakeTimeZoneDatabase doesn't have all timezone entries,
which means it would be just a matter of time for this test
to start failing.

Closes #8702.
2019-01-25 10:11:30 +01:00
Tobiasz Małecki 825c36cdb1 Add missing doc and spec to Calendar.ISO.time_to_string/5 (#8676) 2019-01-25 08:40:51 +01:00
Devon Estes e089224058 Raise error when attempting to run single line tests on multiple files (#8682)
Right now the behavior when trying to use the shorthand for running a
single test for multiple files is confusing. We're now explicitly
disallowing this by raising an error when this happens.
2019-01-25 08:40:24 +01:00
José Valim d3de9717df Fix rounding for subnormal floats (#8687)
Closes #8685
2019-01-25 08:39:41 +01:00
José Valim c689975bf0 Support SOURCE_DATE_EPOCH for reproducible builds (#8694) 2019-01-25 08:31:37 +01:00
Tobiasz Małecki da50c856d9 ExUnit.Assertions docs examples improvement (#8698) 2019-01-25 08:23:16 +01:00
Tobiasz Małecki c1634882fb ExUnit.DocTest moduledoc examples improvement (#8697) 2019-01-25 08:22:25 +01:00
Tobiasz Małecki 4431f20a1e ExUnit.CaseTemplate moduledoc example improvement (#8696) 2019-01-24 22:40:06 +01:00
Tobiasz Małecki a3ae5391fd ExUnit.CaptureIO documentation examples improvement (#8695) 2019-01-24 22:39:38 +01:00
Tobiasz Małecki a03507ed5f ExUnit.CaptureLog moduledoc improvement (#8693) 2019-01-24 22:19:54 +01:00
Joe Yates d75b3a5339 Explicity test EEx options in error messages (#8692) 2019-01-24 22:19:34 +01:00
José Valim 374b945c40 Do not rely on map ordering when sorting specs, see #8689 2019-01-24 21:54:05 +01:00
Joe Yates f8e3447041 Ensure we're testing the actual assignment metadata (#8691)
The existing test was not actually testing anything, as
the default argument to Keyword.get/3, 0, matched one of the
expected values.
2019-01-24 21:05:02 +01:00
José Valim 5bb584f644 Do not execute :rand.uniform/1 at the time the docs are defined
Closes #8689
2019-01-24 17:33:04 +01:00
Bernhard M. Wiedemann fd128e9d20 Make tests pass in 2020 (#8688)
Using only 2038 to keep 32-bit UNIX systems happy.
2019-01-24 14:50:15 +01:00
José Valim 49c6bbf420 Improve docs for Access
A lot of confusion in the previous docs was caused by
trying to explain both bracket-based and dot-based
syntaxes in the same place. This made sense at the time
because those syntaxes were not described elsewhere.
But now we can link to other resources and focus the
docs specifically in the Access module.
2019-01-24 12:53:55 +01:00
Wojtek Mach c3d68c73cc Standardize on iodata variable name, as this is what docs use 2019-01-23 23:25:41 +01:00
Wojtek Mach 5d8df19e20 Convert private is_iodata macro to a private guard 2019-01-23 23:25:41 +01:00
Tobiasz Małecki 0542dafa97 Fix specs for Mix.Project umbrella?/1 and apps_paths/1 (#8683) 2019-01-23 23:15:05 +01:00
José Valim 4c4372b03c Remove confusing comment about dynamically generated cases 2019-01-23 13:35:57 +01:00
Devon Estes 02d4497669 Add ability to filter by more than one line number (#8673) 2019-01-23 13:34:42 +01:00
Tobiasz Małecki bd7d2a7f1b EEx.SmartEngine moduledoc examples improvement (#8681) 2019-01-22 23:02:44 +01:00
Tobiasz Małecki 4ee38f28b5 EEx examples improvement (#8680) 2019-01-22 22:19:02 +01:00
Tobiasz Małecki de1e78db81 Logger documentation improvement (#8679) 2019-01-22 21:13:08 +01:00
Tobiasz Małecki 49a4bb8e28 Agent moduledoc improvement (#8674) 2019-01-22 17:44:10 +01:00
Eksperimental 6e19c7bf61 Make documentation accurate in File.cp* functions (#8627) 2019-01-22 17:27:57 +01:00
José Valim 5fdb64543a Add version to umbrella projects too
This will be useful when assembling releases.
2019-01-22 16:23:32 +01:00
Eksperimental 0f7cc5ccde Use hexadecimal notation in code points in tokenizer error msg (#8669) 2019-01-22 13:39:40 +01:00
Eksperimental 63e24fb520 Improve documentation and info on charlists (#8645) 2019-01-22 09:01:09 +01:00
Eksperimental 84b70d226b Correct arity in List test (#8670) 2019-01-22 08:58:37 +01:00
Eksperimental fc211f77f2 Correct verb tenses (#8667) 2019-01-22 08:56:38 +01:00
Eksperimental c4a362f624 Name args in Range.disjoint?/2 (#8666) 2019-01-22 08:55:56 +01:00
Fernando Tapia Rico 131e9523a9 Optimize generated code for catch-all else clauses (#8661)
Elixir's with is expanded into a series of nested cases. For
example, this code:

    with {:ok, a} <- fun_a(),
         {:ok, b} <- fun_b() do
      wa = fun_w(a)
      wb = fun_w(b)
    else
      error -> {:c, error}
    end

would be expanded to something similar to this:

    case fun_a() do
      {:ok, a} ->
        case fun_b() do
          {:ok, b} ->
            wa = fun_w(a)
            wb = fun_w(b)

          var1 ->
            case var1 do
              error -> {:c, error}
              var2 -> error({with_clause, var2})
            end
        end

      var1 ->
        case var1 do
          error -> {:c, error}
          var2 -> error({with_clause, var2})
        end
    end

The generated code can be optimized for else clauses that
only contain a single catch-all clause (a variable that would
bind everything). Applying this optimization, the code of the
example above would be:

    case fun_a() do
      {:ok, a} ->
        case fun_b() do
          {:ok, b} ->
            wa = fun_w(a)
            wb = fun_w(b)

          error ->
            {:c, error}
        end

      error ->
        {:c, error}
    end
2019-01-22 08:53:24 +01:00
Eksperimental 14f95c0a49 Simplify guards in List.ascii_printable?/2 (#8656) 2019-01-22 08:50:48 +01:00
Fernando Tapia Rico 2951b96f61 Augment doctest errors with misplaced opaque types (#8653) 2019-01-22 08:48:10 +01:00
Tobiasz Małecki 4335a7bd23 Mix.Config.import_config/1 doc improvement (#8665) 2019-01-21 21:58:32 +01:00
Tobiasz Małecki 49240c09fd Format code sample in Mix.Project.in_project/4 doc (#8664) 2019-01-21 21:39:55 +01:00
Wojtek Mach 22fcd3ff22 Update Module.spec_to_callback to keep existing specs and copy docs (#8663) 2019-01-21 19:49:44 +01:00
Eksperimental cd38956540 Improve docs in Module functions and raise errors (#8635) 2019-01-21 18:12:51 +01:00
Wojtek Mach 223a26bfc0 Hide functions accidentally made public (#8662) 2019-01-21 14:13:13 +01:00