José Valim
6fdccdb802
Definitions without implementation can specify default clauses.
2012-04-21 14:57:24 +02:00
Alexei Sholik
22c2355af1
Add tests for loop with no match
2012-04-17 00:27:46 +03:00
José Valim
57b22b6589
Improve errors messages a bit, closes #253
2012-04-14 09:05:31 -03:00
José Valim
2851da4186
Ensure protocol functions with more than one arity works, closes #247
2012-04-13 10:18:03 -03:00
Alexei Sholik
7745106b92
Implement List.unzip
...
The unzip operation is equivalent to zipping, but we take an additional
step of converting the resulting list of tuples into a list of lists.
2012-04-13 10:05:11 +03:00
Alexei Sholik
284012d46c
Implement List.zip
2012-04-13 01:40:29 +03:00
Alexei Sholik
9caaa60ea4
Implement List.sort
2012-04-13 01:40:18 +03:00
Alexei Sholik
95d0a73afc
Do not test System.pwd return value.
...
The function relies on Erlang's filename:abs function, so we're
basically testing Erlang here. There is no straightforward way to obtain
current directory by other means that'll work seamlessly on all OSes.
So we'll better not check the return value.
2012-04-11 00:58:19 +03:00
José Valim
dfecc3e380
Tidy up system, focus only in returning binaries instead of char lists.
2012-04-10 16:40:02 -03:00
José Valim
58d45c13f9
Merge pull request #230 from alco/system-module
...
New functions for the System module
2012-04-10 12:30:48 -07:00
José Valim
393098ff9e
Move compilation options to the code server, closes #205 .
2012-04-10 16:27:56 -03:00
José Valim
251fa6f19c
Provide a macro convenience that escapes values.
2012-04-10 14:56:50 -03:00
José Valim
37199581e4
Ensure overridable definitions are private, closes #241
2012-04-10 10:51:31 -03:00
José Valim
7acabd9354
Merge pull request #236 from guedes/atom_to_binary
...
Atom to binary
2012-04-09 17:05:52 -07:00
José Valim
2b0f70c88e
Ensure access syntax works with record syntax, closes #237
2012-04-09 21:04:08 -03:00
José Valim
d4d9674330
Fix a scenario where nested variables were not propagating.
2012-04-09 19:00:09 -03:00
Dickson S. Guedes
8f8e6d8d78
adding test to atom_to_binary
2012-04-09 16:56:36 -03:00
José Valim
35b22c598d
Small tidy up on file.ex
2012-04-06 10:14:48 -03:00
Anthony Grimes
efe27fc63c
Add read_info(!) tests.
2012-04-06 04:10:00 -05:00
Alexei Sholik
46216a5ba8
Add tests for System
2012-04-05 23:40:27 +03:00
José Valim
3802d998d9
Avoid side effect in tests.
2012-04-05 15:23:54 -03:00
Dickson S. Guedes
18c48db0e2
allow binary_to(_existing)_atom uses :utf8 as default encoding when it is not specified, refs #221
2012-04-05 12:44:44 -03:00
Alexei Sholik
6e542796d6
Make process_options testable
2012-04-05 10:39:34 +03:00
José Valim
d3720fe337
Work with binaries, remove char list module.
2012-04-04 15:35:04 -03:00
José Valim
bf483ef934
Ensure nested case works, closes #231
2012-04-04 13:52:46 -03:00
José Valim
6a044e6d37
Ensure we can print and inspect utf8 strings.
2012-04-04 11:15:29 -03:00
José Valim
0c1e26adc2
Allow record matches.
2012-04-04 11:07:49 -03:00
José Valim
ec07126d5d
Properly match bin args.
2012-04-04 11:02:09 -03:00
José Valim
58b770bd85
Allow locals to be delegated to a module.
2012-04-03 19:24:48 -03:00
José Valim
3cad19dbeb
Move Module.eval_quoted to the new API.
2012-04-03 19:06:56 -03:00
José Valim
17f9c6f1f0
Move evaluation options to an options setup instead of multiple args.
2012-04-03 18:59:20 -03:00
José Valim
1514c0371b
Rename Env to System, move Code functionality to it.
2012-04-03 18:35:24 -03:00
José Valim
cf6c7f37ea
Merge pull request #222 from alco/env-module
...
Env module
2012-04-03 13:48:33 -07:00
José Valim
8025bc1dee
Ensure we can return utf8 code points.
2012-04-02 21:23:13 -03:00
José Valim
23b0b766e6
Add inspect to Regex.
2012-04-02 10:23:30 -03:00
José Valim
28eaff894e
Remove integer based access protocol from lists and binaries.
2012-04-02 10:18:47 -03:00
José Valim
51d9ca5861
Store options as binaries.
2012-04-02 10:06:04 -03:00
José Valim
35038877a2
Add source and opts to Regex.
2012-04-02 09:34:47 -03:00
Alexei Sholik
e864164321
Initial draft of the new Env module
2012-04-02 01:49:54 +03:00
José Valim
7033f37a61
Allow modules to be nested.
2012-04-01 23:34:50 +02:00
Rafael Mendonça França
3bc73a3b24
OptionParser.Simple is now based in binaries. Closes #208
2012-04-01 12:53:58 -03:00
José Valim
96f26c9299
Rename Orddict to Keyword, closes #216 .
2012-04-01 16:10:31 +02:00
José Valim
06f1f6f5e5
Ensure nested loops work, closes #215 .
2012-03-31 11:57:54 +02:00
José Valim
2becd5d1f6
Give a warning if docs are being overwritten.
2012-03-31 11:53:19 +02:00
José Valim
27f263b5a9
Add a failing test for multiclause docs.
2012-03-31 11:47:59 +02:00
José Valim
603a3ee19c
destructure can handle nils.
2012-03-31 10:57:34 +02:00
Alexei Sholik
2ab7b09d8e
Rename List.append -> List.concat
2012-03-30 20:55:34 +03:00
Alexei Sholik
0fc712377b
Replace seq with more powerful range
2012-03-30 20:46:11 +03:00
Alexei Sholik
2f86a4f94b
Add tentative range_a and range_b functions
2012-03-30 19:22:00 +03:00
Alexei Sholik
4f07a3c30f
Minor fix in enum_test.exs
2012-03-30 18:17:28 +03:00