Commit Graph
39 Commits
Author SHA1 Message Date
José Valim e476a5ef0d Stab at new syntax 2012-05-13 15:33:57 +02:00
José Valim b620b2ea9a Ensure we don't rescue the wrong exception accidentally 2012-04-26 09:58:16 +02:00
José Valim 5210aa5da8 Now that we have faster load times, get rid of assert_equal 2012-04-26 09:29:21 +02:00
José Valim 929f84f420 Revert removal of assert_equal 2012-04-26 00:31:40 +02:00
José Valim 24d64a871e Get rid of assert_equal 2012-04-25 23:36:02 +02:00
José Valim 08078007c1 Smarter guesses on expected and actual, convert access_test.ex 2012-04-25 21:32:27 +02:00
José Valim ba330be02f Get rid of assert_access in favor of assert 2012-04-25 20:43:02 +02:00
José Valim 9a475008ec Get rid of assert_operator, handle it with assert 2012-04-25 20:36:42 +02:00
Sergey Nartimov 32f08b40a5 guess expression meaning in ExUnit assert
handle `==` and `List.member?` in expression
2012-04-14 21:48:56 +03:00
José Valim 28eaff894e Remove integer based access protocol from lists and binaries. 2012-04-02 10:18:47 -03:00
José Valim d82da1a527 Add assertions for access. 2012-03-30 16:43:49 +02:00
José Valim 99d65007ce Remove noise from ExUnit backtrace. 2012-03-26 10:27:47 +02:00
José Valim 3f8d7a5ae7 Add refer back. 2012-03-25 22:55:48 +02:00
José Valim 1230f86e7c Remove automatic aliases from defmodule. 2012-03-25 22:29:41 +02:00
José Valim c5be874751 Remove support to ::, down to 16 failures. 2012-03-25 21:35:49 +02:00
José Valim d815788c52 Compile files using . and inside __MAIN__ 2012-03-25 18:48:20 +02:00
José Valim 5c34d33c9d No need to run test sync 2012-03-17 15:26:44 +01:00
Sergey Nartimov 435d5ff2ec add assert_throw, assert_exit and assert_error to ExUnit 2012-03-09 00:01:09 +03:00
Sergey Nartimov 47feb16184 add assert_in_delta/refute_in_delta to ExUnit 2012-03-08 00:35:48 +03:00
Sergey Nartimov 29bc5de37d add assert_nil/refute_nil to ExUnit 2012-03-07 22:36:31 +03:00
Sergey Nartimov a99939951d add assert_empty/refute_empty to ExUnit 2012-03-07 18:27:04 +03:00
Sergey Nartimov 6d8e23ade0 add assert_operator to ExUnit assertions 2012-03-07 09:52:04 +03:00
José Valim cbaadadd55 Ensure erlang errors are handled properly. 2012-03-06 17:41:49 +01:00
Sergey Nartimov 30d0cdd051 add assert_raises to ExUnit assertions 2012-03-06 17:27:48 +03:00
Sergey Nartimov 4e7e12fc96 add refute_equal to ExUnit assertions 2012-03-06 10:02:56 +03:00
José Valim cc4487d3bb Define super for defforward. 2012-02-20 09:26:27 +01:00
José Valim 3a06259951 Convert from def test_rest to test :rest 2012-02-13 16:56:11 +01:00
Rafael Mendonça França f21c6d9845 Add flunk assertion 2012-02-12 18:43:18 -02:00
Rafael Mendonça França 6934441095 Rename assert_included to assert_member
Since it only works with char lists
2012-02-12 18:30:01 -02:00
Rafael Mendonça França aab60b57e2 Make the assertions tests fail when nothing is raised 2012-02-12 18:30:01 -02:00
José Valim 43cba13849 Added assert_match as assertion. 2012-02-12 07:52:26 +01:00
Rafael Mendonça França 1991d8669c Use new assertions on tests 2012-02-12 00:22:52 -02:00
Rafael Mendonça França 37072e4092 Refactor assertions to use assert method and add tests
Also add the ability to change the message of assertions
2012-02-11 23:29:55 -02:00
José Valim 41d2a7f87e Revert "Rename tuples { 1, 2, 3 } to %{ 1, 2, 3 } to remove ambiguity."
This reverts commit 20f524dae2.
2012-02-06 22:46:24 +01:00
José Valim 20f524dae2 Rename tuples { 1, 2, 3 } to %{ 1, 2, 3 } to remove ambiguity. 2012-02-06 16:39:55 +01:00
José Valim b06cc4e9fb Macros chapter is done. 2012-01-18 09:54:37 +01:00
José Valim 4d1e0d37be Fix line numbers in evaled code, #99 2012-01-13 13:50:24 +01:00
José Valim b24cf2b754 Do not return the binding after eval. 2012-01-09 20:12:04 +01:00
José Valim 001026de7d Provide a mechanism to escape _ 2012-01-09 15:24:17 +01:00