Commit Graph
2537 Commits
Author SHA1 Message Date
Aleksei Magusev f557d7b7cb Tidy up code around syntax highlighting in IEx 2016-11-20 17:20:38 +01:00
Aleksei Magusev 6630806b50 Remove spaces around * in bitstring definitions 2016-11-20 17:20:37 +01:00
Aleksei Magusev f2b1ae4f32 Use literal velues for size modifier in bitstring definitions 2016-11-20 17:20:37 +01:00
Eksperimental 22ca0ea2dd Raise when given non-keyword lists in Keyword.merge/2 (#5466)
Closes #5395.
2016-11-20 15:33:10 +01:00
José Valim 995836cffc Improve error message on default handle_call/handle_cast clauses, closes #5356 2016-11-20 14:46:34 +01:00
José Valim 495fadab70 Raise BadBooleanError on and/or, closes #5297 2016-11-20 13:30:50 +01:00
José Valim 97fd4318d1 Refactor KernelTest to use describe/2 2016-11-20 13:29:27 +01:00
José Valim 6bb8f59b42 Improve compiler message on unexpected end of line, closes #5137 2016-11-20 11:01:30 +01:00
José Valim 2eb6a5c67f Warn for unused module attributes
Module attributes that are imported from other
contexts are not warned. This keeps the same
semantics regarding variables and function definition
ordering which are not warned when they come from
other contexts.
2016-11-20 00:08:20 +01:00
Gustavo Saiani 2a58c2040e Remove duplicated assertion and improve formatting in KernelTest (#5454) 2016-11-16 16:57:14 +01:00
Gustavo Saiani 9ad8441da2 Remove double space from KernelTest (#5451) 2016-11-16 00:32:18 +01:00
Andrea Leopardi c08bf1ae5a Fix the spec and guards for Inspect.Algebra.surround_many/6 (#5450)
The old spec said that the "left", "right", and "separator" arguments
had to be binaries but they can instead be documents.
2016-11-15 17:48:34 +01:00
Louis Pilfold 0508a8eef0 Syntax highlighting of IEx results (#5355) 2016-11-15 12:11:13 +01:00
Gustavo Saiani d71a1d21e7 Inline do in def sequence for KernelTest 2016-11-14 17:41:02 -02:00
José Valim b7dccb1b38 Support match lookups in the registry 2016-11-11 18:22:34 +01:00
José Valim 5845d67b89 Remove liveness guarantees as races exist anyway 2016-11-11 17:10:19 +01:00
Aleksei Magusev 01fa419f01 Minor improvements around OptionParser.to_argv/2 2016-11-09 20:43:02 +01:00
Aleksei Magusev 7c39353649 Tidy up Kernel.TypespecTest 2016-11-09 20:27:05 +01:00
Waldemar Rachwał 8e02af2752 Two fixes in record/1 (#5412)
* Document use of `record/1` with atom argument.

* In `record/1` used with record argument, raise ArgumentError on record size mismatch.
2016-11-08 15:27:46 +01:00
José Valim 5a44b36f80 Allow "super" types in Calendar functions 2016-11-08 11:52:03 +01:00
Michał Muskała 28ef5c9133 Simplify Kernel.match?/2 (#5429)
There's no need for a special handling of the underscore as the pattern,
the case expression is able of optimizing such cases too.

Additionally the right was never evaluated with underscore as the
pattern, which could lead to subtle bugs.

Currently match?(_, foo) will emit a pattern warning since both branches
of the case are exactly the same. This means such expressions had to be
removed from the test suite. They were replaced with the equivalent:

    fn _ -> true end
2016-11-08 01:07:09 +01:00
Michał Muskała 252ff2e4a5 Make tokenizer recognize VC merge conflict marker (#5416)
The "<<<<<<<" is used by all major VC systems including git,
subversion and mercurial.
2016-11-06 17:55:59 +01:00
Joao Bernardo 0b13a99870 Implements Date.day_of_week/1 (#5404) 2016-11-03 15:32:59 +01:00
Michał Muskała 10b63eb8af Use Macro.to_string/1 when printing bad struct keys (#5403) 2016-11-03 12:25:18 +01:00
Muaaz Saleem 26af1f7d72 Fixing :count support in OptionParser.to_argv (#5394) 2016-11-02 11:46:29 +01:00
José Valim e9dc48f89f Add Registry 2016-11-02 10:11:51 +01:00
José Valim c346bb0d81 Introduce Task.async_stream/3 and Task.async_stream/5 (#5367) 2016-10-31 22:23:41 +01:00
Eksperimental c643172a87 Spell "builtin" as "built-in" (#5376) 2016-10-29 16:19:24 +02:00
José Valim d715f8dca8 Ensure we check for microseconds in Time.compare 2016-10-28 21:15:31 +02:00
Eksperimental 46fa15b688 Improve Typespecs page and test every document type (#5362) 2016-10-28 21:11:09 +02:00
Eksperimental 4a5b49fe6b Properly spell UTF-8 (#5373) 2016-10-28 21:09:23 +02:00
Eksperimental d8494a1171 Remove spaces around * in bit syntax in Macro.to_string/2 (#5370)
Per discussion in https://github.com/elixir-lang/elixir/pull/5362#discussion_r85313529.
2016-10-28 16:10:17 +02:00
Aleksei Magusev ab6ac8b11a Improve names of String tests 2016-10-27 18:46:46 +02:00
José Valim a00ed39f8a Ensure both inner and outer transform streams are closed 2016-10-27 18:30:59 +02:00
José Valim d8cbdf730e Refactor Task tests to use describe/2 2016-10-27 17:01:00 +02:00
Aleksei Magusev e909f89381 Generalize and move myers_difference/2 to List 2016-10-26 16:03:04 +02:00
Aleksei Magusev e0d4948e7c Favor struct update over Map.put/3 in Calendar tests 2016-10-25 20:50:53 +02:00
Aleksei Magusev 119aafc96f Improve varible names in NaiveDateTime tests 2016-10-25 20:50:53 +02:00
Aleksei Magusev cff98b1877 Use sigils in {Date, DateTime, NaiveDateTime}.compare/2 tests 2016-10-25 20:50:53 +02:00
Aleksei Magusev f14fcf0a66 Put expected result on right side of assertion in Calendar tests 2016-10-25 20:50:53 +02:00
Otto Lin 82a4725b7f Add Date/Time/NaiveDateTime.compare/2 (#5349) 2016-10-24 08:55:44 +02:00
José Valim 3b08987dfd Ensure we consistently wrap variables in quotes 2016-10-22 22:25:18 +02:00
Aleksei Magusev 541f3a0114 Restructure doc samples in DocsTest 2016-10-22 21:12:09 +02:00
Aleksei Magusev 73ce33f186 Test all available doc kinds in the test for Code.get_docs/2 2016-10-22 20:53:37 +02:00
Aleksei Magusev ba7477187a Fully validate the shape of the options for import/2 2016-10-22 20:53:34 +02:00
Aleksei Magusev 550df181c5 Favor ==/2 operator over match in assertions 2016-10-22 20:50:19 +02:00
Aleksei Magusev f388f96075 Make actual testing of doc attributes instead of occasional matching 2016-10-22 20:50:19 +02:00
Eksperimental 15adf9b362 File.rmdir!/1: give a less confusing error message when directory is not empty (#5299) 2016-10-14 11:39:55 +02:00
Eksperimental 8f315506cf Enforce rule of only guards should start with "is_" (#5300) 2016-10-13 10:05:38 +02:00
Eksperimental 8771d0323b Reword "pseudo-variables" with "compilation environment macros" (#5308)
As discussed in https://github.com/elixir-lang/elixir/pull/5301#pullrequestreview-3711427.
2016-10-12 00:49:47 +02:00