Commit Graph
2311 Commits
Author SHA1 Message Date
José Valim 7d5233d3b1 Add group_by/3 with a value fun 2016-05-18 22:33:42 +02:00
José Valim b38ace0a79 Tidy up LexicalTracker 2016-05-18 08:42:33 +02:00
Aleksei Magusev d22e456047 Improve warning output (#4631) 2016-05-16 00:10:51 +02:00
José Valim f041c79df8 Add refute back to warning test 2016-05-15 20:57:33 +02:00
José Valim 7cac73a095 Unify warning calls 2016-05-15 20:34:29 +02:00
Aleksei Magusev 7f53048cb5 Enrich tests for alias, import and require return 2016-05-15 18:32:35 +02:00
José Valim be715bfe36 Add assertions that match on the imported value 2016-05-15 17:55:29 +02:00
José Valim 38b784927f Improve elixirc options and use upcoming waiting mode 2016-05-15 09:23:34 +02:00
Aleksei Magusev 389d5b70cd Make IOTest sync since we're capturing stderr now 2016-05-14 01:24:58 +02:00
Aleksei Magusev f3ed399f2f Tidy up IO.warn/1,2 2016-05-14 01:13:08 +02:00
Louis Pilfold d722304c6b IO.warn to unify warnings (#4615)
* IO.warn/1 function

* Use IO.warn/1 instead of IO.write :stderr

* Add stack trace printing to IO.warn

* Remove manual stacktrace concatting from IO.warn calls

* Remove double trailing newline from IO.warn
2016-05-13 14:12:01 +02:00
Miles Starkenburg 551a9ac14e Fix nfd normalization bug (#4606)
* Fix nfd normalization bug

* Change String.normalize return type to binary
2016-05-13 09:28:50 +02:00
eksperimental 9acfe97661 Replace "thing" arg with more appropriate "term" arg (#4607) 2016-05-13 09:23:48 +02:00
José Valim b252a5997b Merge pull request #4592 from eksperimental/integer_args
Integer improvements
2016-05-11 00:01:09 +02:00
Aleksei Magusev 9d03be21b9 Do not emit warning when "with" clause always matches (#4597) 2016-05-09 20:06:33 +02:00
eksperimental ba75fc487f Integers: Tests added 2016-05-09 21:47:59 +07:00
eksperimental d9c8f58475 Integer: Polish docs, Improve guards and Optimize functions 2016-05-09 21:47:47 +07:00
eksperimental 0aece49e2d Replace 'char_list' and 'char list' with 'charlist' 2016-05-07 03:20:57 +07:00
José Valim a6411efce5 Merge pull request #4584 from eksperimental/range_valid
Range: Enforce integers values
2016-05-06 10:56:40 +02:00
eksperimental bf64f5ee95 Range.range?/1: Checks for valid ranges 2016-05-06 02:39:13 +07:00
eksperimental 6da34e0225 Standardize unicode and friends (#4569)
* Unicode is a proper noun, so it should be capitalized

* Replace 'char data' with 'chardata'

* Correct use of a/an articles
2016-05-05 09:21:05 +02:00
Aleksei Magusev 574c6db3f8 Improve guards definition for IO stream functions 2016-05-04 01:32:37 +02:00
Aleksei Magusev b9b2baef04 No need for InErrors purging in kernel_test.exs 2016-04-30 13:14:40 +02:00
Andrea Leopardi 67589f8815 Add a couple of tests for errors with in/2 in guards 2016-04-30 10:59:46 +02:00
eksperimental a70effd4b4 IO: Several improvements (#4560)
IO Module:
  * Impoves wording in documentation, particularly in the use of :all, :line, count
  * Standardizes arg names to be `line_*`.
  * Adds function guards to check for integers.
  * Unicode is a proper noun, so it should be always capitalized.
  * Adds backticks to args suchs as `device`, `item`, `count`.
  * When functions are "Unicode unsafe", they are indicated in the first paragraph of docs.
  * IO.puts: code simplified removing unnecessary variable.
  * Adds \n to example in IO.gets/2
  * Adds example in IO.chardata_to_string/1 when dealing with strings
  * Renames args in IO.each_stream/2 and IO.each_binstream/2
  * Adds tests for IO.getn/2-3 calling functions with different arities

IO.Steam Module:
  * Adds a note about side effects when dealing with IO streams.
2016-04-28 13:18:32 +02:00
José Valim ecd7b01beb Do not change underscore behaviour in Macro 2016-04-26 00:54:36 +02:00
Aleksei Magusev 7e20b6ef99 Merge pull request #4535 from lexmag/string-trim-pad
Introduce String.pad_{leading,trailing}/3 and String.trim{,_leading,_trailing}/2
2016-04-25 20:02:19 +02:00
Aleksei Magusev a3a9293637 Hide String.{strip,lstrip,rstrip,ljust,rjust} functions 2016-04-25 19:59:24 +02:00
Aleksei Magusev 24ab310950 Introduce String.trim{,_leading,_trailing}/2 2016-04-25 19:59:24 +02:00
Aleksei Magusev 81380237d2 Introduce String.pad_{leading,trailing}/3 2016-04-25 19:59:21 +02:00
eksperimental 4ceb41e71b Formmating: Add white space around vertical bar (#4507) 2016-04-25 00:55:49 +02:00
Aleksei Magusev 8fcf699c05 Fix String.replace_trailing/3 replacement bug 2016-04-24 22:32:59 +02:00
Aleksei Magusev 459fc9a408 Fix String.replace_leading/3 replacement bug 2016-04-24 22:32:54 +02:00
eksperimental bed9816549 Formatting: add white space after comma (#4491)
Standardizes the use of comma leaving a white space after it whenever applicable.

Note: It does not enforce this in quantifiers in regular expressions such as in: `x{1,3}`
2016-04-19 01:23:50 +02:00
Mateusz Bil 715429bdcc Add more tests for sigil ~w interpolation behaviour (#4532) 2016-04-18 21:05:13 +02:00
José Valim 6ab5ac5232 Add tests for underscores in records 2016-04-18 11:25:55 +02:00
Daniel Perez ea1921ab12 Fix Macro.to_string keyword blocks in normal function calls (#4526) 2016-04-17 10:09:06 +02:00
Jaime Iniesta b4d17c6cd5 Fixes typo in test. "shorcut" => "shortcut". (#4520) 2016-04-15 00:02:36 +02:00
Alex 6a360853ea Added more tests in GenServer.call/3 (#4513) 2016-04-13 14:00:59 +01:00
Thijs Klaver 7f948540c6 Raise error message if you try to GenServer.call/3 yourself (#4512) 2016-04-12 19:34:02 +01:00
José Valim 42ecdfd8da Improve calling self message 2016-04-12 00:09:13 +02:00
Alex cc59462e96 Raise nice error message if you try to GenServer.call/3 from yourself 2016-04-12 00:02:12 +02:00
José Valim 89695b2837 Add more test cases to try, improve error message 2016-04-11 12:37:14 +02:00
Daniel Perez b2e8c1451e Allow generated variables in map keys. Fix #4428 (#4504) 2016-04-11 12:27:10 +02:00
eksperimental 6a9e872a08 Fix and improve Enum.sum/1 for ranges
* Latest changes introduced in Enum.sum changed the type of the return value
(from integer to float) when argument was a range. This commit fixes this.

* Adds a spec when dealing with Range.t

* It simplifies the function by making it more recursive,
and also deals with ranges where first and last are equal
2016-04-07 00:02:14 +02:00
José Valim 7ce93f6c8b Normalize and document time and time units 2016-04-05 17:21:33 +02:00
Aleksei Magusev 1057356396 Merge pull request #4430 from lexmag/ex_unit-difference-highlighting
Add difference highlighting to ExUnit
2016-04-05 14:58:57 +02:00
Aleksei Magusev df5ac21cb4 Introduce String.myers_difference/2 2016-04-05 01:10:08 +02:00
James Fish 8095e867e7 Merge pull request #4455 from whatyouhide/system-os-time
Add System.os_time/0,1 and update time-related docs in System
2016-04-04 23:42:47 +01:00
José Valim 51feaa5e62 Handle chars literals in the parser for better syntax errors
Handle chars literals in the parser for better syntax errors
2016-04-04 21:35:12 +02:00