Dov Murik
4e284171ed
tests: Add tests for (first nil) and (rest nil)
2016-02-03 21:23:45 -05:00
Joel Martin
35ea7a9ec7
Remove soft around nested equality tests
...
Related to issue #123
2016-02-01 15:10:12 -06:00
Dov Murik
163964afe1
tests: verify list/vector equality in hash-map values
...
This is still in the soft-tests section of tests/step9_try.mal.
Issues: #116 , #123
2016-02-01 11:06:00 -05:00
Dov Murik
6205526a91
tests: Verify extra args (after &) are in a mal list
...
step4: before TCO
step9: after TCO and bypass TCO using `apply`
2016-01-29 21:37:30 -05:00
Dov Murik
a16bb08f51
python: Fix equality of unicode/normal strings in Python 2.x
2016-01-27 13:02:14 -05:00
Joel Martin
9bca0b57e3
tests: make macro result evaluation mandatory.
2016-01-26 14:21:05 -06:00
Dov Murik
718f8e4d6c
tests/stepA: add gensym and clean or
macro tests
2016-01-22 23:47:51 -05:00
Dov Murik
a193b2c470
tests/step8: remove and
macro tests, add ->> macro tests
...
1. `gensym` isn't yet available in step8
2. `and` tests are very slow in some implementations
3. ->> macro is more complex
4. moved core.mal to the end so it won't override the builtin `or` macro
2016-01-22 23:47:50 -05:00
Joel Martin
6523be9f1a
Add macro result eval test.
...
Test to cover bug https://github.com/kanaka/mal/issues/142
2016-01-20 15:28:55 -06:00
Dov Murik
627bd6f766
process, tests: move atoms implementation from stepA to step6
2016-01-06 14:33:55 +02:00
Dov Murik
3dcaa6ce43
js: Fix exception in `(nil)
2015-12-28 10:22:58 +02:00
Dov Murik
c4cd270022
tests: Add str and pr-str tests in step4 and step9
...
Specifically test serializing nil, empty collections and `str` of
collections. The Mal implementation is *not* identical to Clojure for
these cases.
2015-12-17 22:01:31 +02:00
Dov Murik
539427f0db
nim: fix tokenizer endless loop (and out-of-memory) on bad input
...
The input string `(prn "abc` caused the nim implementaion (from step1
onwards) to enter an endless loop in tokenize (which eventually caused
out-of-memory).
The fix verfies that indeed the regex matches a non-empty substring
before adding that substring as a token.
2015-12-04 15:35:39 -05:00
Joel Martin
c46b421a24
Haskell: fix simple vector equality. Add test.
...
- Was missing vector to vector equality but never noticed because test
was missing.
- Related to #123
2015-12-03 16:27:47 -06:00
Dov Murik
6496cd1d17
tests: add tests for nil hashmap values
2015-12-02 15:52:32 -05:00
Joel Martin
5044ce44f4
Tests: add nested hash-map tests.
2015-12-02 11:16:09 -06:00
Dov Murik
4b7f92e5d6
tests: add soft tests for nested vector/list equality in step 4
2015-11-30 10:35:14 -05:00
Dov Murik
c362489f35
tests: add more hash equality test cases in step 9
2015-11-17 21:19:30 -05:00
Joel Martin
a0b63ee477
hash-map equality: bash, c, coffee, cs, es6, ...
...
- hash-map equality support for bash, c, coffee, cs, es6, java, js,
julia, make, php.
- also, add another test to catch another hash-map in-equality: same
keys, different values
2015-11-16 23:28:58 -06:00
Dov Murik
9af1191f5d
tests: step9: add hash-map equality tests (as soft tests)
2015-11-09 22:24:02 -05:00
Joel Martin
595376919b
Misc cleanup for midwest.io presentation.
2015-11-07 15:31:25 -06:00
Joel Martin
8d78bc26bf
All: fix read/print of \\, and \n
2015-10-30 22:05:49 -05:00
Joel Martin
953772ca00
step5 test: group related test code together.
2015-10-27 15:33:53 -05:00
Javier Fernandez-Ivern
b25e3d29fb
Reduced the mutually recursive function test size
2015-10-27 15:05:40 -05:00
Javier Fernandez-Ivern
5e43076014
Added TCO test for mutually recursive functions
2015-10-27 13:17:56 -05:00
Javier Fernandez-Ivern
6132da853d
Fixed final bug with swap, added tests
2015-10-26 21:49:58 -05:00
Javier Fernandez-Ivern
f39c5a2633
Fixed step 6 tests
2015-10-26 21:31:44 -05:00
Javier Fernandez-Ivern
2eb2cac230
Fixed several self-hosting issues, added atom? tests
2015-10-26 20:27:29 -05:00
Joel Martin
922d4c3b9b
Makefile and tests/step4: Self-host test fixes.
...
- Always use stepA for the RUNSTEP macro in addition to the
STEP_TO_PROG macro.
- Disable the (fib 10) test because this is really too slow for
several self-hosted implementations to complete before a timeout.
2015-10-11 22:10:59 -05:00
Joel Martin
378d1ff68e
tests/step0: fix tests to not confuse runtest.py
...
- the test starts with ';' which is meaningful to runtest.py.
2015-10-11 22:10:06 -05:00
Joel Martin
98af2ae360
runtest.py: add --soft option, refactor test reader.
...
- also, mark later stepA optional as soft.
2015-10-09 09:31:29 -05:00
ekmartin
bb52697591
Update README/Makefile/Dockerfile
2015-09-10 01:47:55 +02:00
Mitsuru Kariya
8c7587af67
Adds GNU awk implementaion
2015-08-26 00:46:31 +09:00
Joel Martin
a9cd654347
Add groovy implementation.
...
I'm away from my main workstation for a week and unfortunately, I only
copied the code but not the branch with full history so this is just
the implementation. However, the history isn't all that interesting
(mostly just the steps one at a time) and I wanted to get this out
there.
2015-05-18 19:54:18 -07:00
def
de69b63902
Use Nim 0.11.0
2015-04-30 17:51:20 +02:00
Joel Martin
cd80c38146
Dockerfile: move Julia & Erlang. Add guile & factor.
2015-04-08 17:31:01 -05:00
Nathan Fiedler
83d3c03370
Update Dockerfile to install Erlang/OTP R17
2015-04-04 09:15:44 -07:00
Joel Martin
520051615c
tests: add test to make sure *host-language* is set
2015-04-03 18:31:14 -05:00
Joel Martin
7e0bb668cf
Julia: self-hosting.
...
- fix meta and swap! functions and add missing tests
- fix eval_ast of hash-maps across all steps
2015-03-31 23:04:45 -05:00
Joel Martin
fc15535c69
Julia: add Dockerfile dependencies.
2015-03-31 23:04:45 -05:00
Stephen Thirlwall
79f8ce3ec5
Add C++ packages to tests/docker/Dockerfile
...
Thought I'd already done this. Must've got lost in all the rebasing...
2015-03-28 12:41:45 +11:00
Joel Martin
8b142f0828
Swift: lang cnt to 28, note XCode, skip in docker.
...
- Update the README to 28 languages.
- Note that Swift impl currently requires XCode/OS X :-(
- Add Swift to skip list in Dockerfile.
2015-03-24 09:29:53 -06:00
Joel Martin
20c05e3561
racket: fix apply/vector
...
- re-order apply/vector tests into optional section.
2015-03-22 14:43:26 -05:00
Stephen Thirlwall
3fcc9c8d01
Step 9 test cases for apply on vectors
2015-03-22 22:45:45 +11:00
Joel Martin
0afb3ee867
Dockerfile: make Nim build one layer.
...
Save couple hundred MB or so.
2015-03-18 14:51:32 -05:00
Joel Martin
b3c30da9fc
runtest: set pty size to fix readline of long lines.
...
- Also, add a long line test to step0 tests.
- Fix java step0 arg parsing.
- Fix postscript long line reads (larger buffer)
- Add mal step0_repl
2015-03-18 13:08:08 -05:00
Joel Martin
6b9eb18e01
tests: move reorder tests to better match guide.
2015-03-18 08:12:19 -05:00
Stephen Thirlwall
ba53efc2b5
Add test that (with-meta X ...) returns an X
2015-03-17 11:14:13 +11:00
Joel Martin
11df60ad8c
Merge pull request #44 from sdt/step9-typo-fix
...
Remove extra ) from step9 test snippet
2015-03-16 09:51:21 -05:00
Stephen Thirlwall
617bdb3552
Remove extra ) from step9 test snippet
...
My reader complains if there is extra input after the top-level
read_form, so this test was inadvertently failing for me.
2015-03-16 16:55:34 +11:00