1
1
mirror of https://github.com/kanaka/mal.git synced 2024-09-20 18:18:51 +03:00
Commit Graph

940 Commits

Author SHA1 Message Date
Joel Martin
4be8abdfee R: add native hash-map equality
- part of #116
2015-11-30 14:07:54 -05:00
Joel Martin
036ffb78ea Merge pull request #122 from dubek/nested-vector-list-tests
tests: add soft tests for nested vector/list equality in step 4
2015-11-30 13:53:26 -05:00
Dov Murik
4b7f92e5d6 tests: add soft tests for nested vector/list equality in step 4 2015-11-30 10:35:14 -05:00
Joel Martin
33f5a9c8d6 Travis: fix docker use with matrix.
- Move the service: [docker] into each matrix item instead of
  top-level.
2015-11-24 11:06:05 -05:00
Joel Martin
b26b1bcfa0 Travis: test without language setting. 2015-11-23 22:13:50 -05:00
Joel Martin
f1ecd91a3e Travis: fix global language to "node_js" 2015-11-23 21:58:25 -05:00
Joel Martin
2dd535e719 nim: update Dockerfile to use version 0.12 2015-11-23 15:48:56 -05:00
Joel Martin
cde5aa77e7 Merge pull request #120 from def-/master
Nim fixes
2015-11-23 14:32:29 -05:00
Joel Martin
cce7fccd4c Merge pull request #121 from dubek/lua-time-ms
lua: fix time-ms to return actual millisecond resolution timestamp
2015-11-23 14:10:01 -05:00
Joel Martin
19967cfc5e Merge pull request #119 from dubek/racket-fix-hash-equality
racket: fix hash-map equality
2015-11-23 14:02:22 -05:00
Joel Martin
a05ede09fb Merge pull request #118 from dubek/ocaml-fix-hash-equality
ocaml: fix hash equality
2015-11-23 14:01:57 -05:00
Dov Murik
af8d51d139 lua: fix time-ms to return actual millisecond resolution timestamp 2015-11-23 11:41:54 -05:00
def
3c3e03c777 Nim: Fix hash map behaviour when key is not in it 2015-11-23 15:41:23 +01:00
def
b2548ecf41 Nim: Add sequtils import for map proc 2015-11-23 15:40:56 +01:00
Dov Murik
a91198f3fa racket: fix hash-map equality 2015-11-21 23:57:47 -05:00
Dov Murik
a8d8d81012 ocaml: fix hash equality 2015-11-21 23:00:56 -05:00
Joel Martin
1f8c4c8448 VB: fix hash-map equality. 2015-11-18 23:56:54 -06:00
Joel Martin
028012e9ea make: fix comparison of empty hash-maps.
Again, combine checks onto a single line to prevent newline/whitespace
breakage in the check.
2015-11-18 22:58:47 -06:00
Joel Martin
0cc625237e make: fix list comparison
Multiline check introduces bug in certain sequential comparisons.
So make it one line :-(
2015-11-18 21:54:09 -06:00
Joel Martin
1483aa6cfc Merge pull request #117 from ivern/kotlin
Upgraded Kotlin to a newer beta, solved new deprecation warnings
2015-11-18 21:50:25 -06:00
Joel Martin
c6c1a94f1b perl: fix keys on hash-map in perl 5.20
Otherwise throw error "keys on reference is experimental".
2015-11-18 21:44:58 -06:00
Javier Fernandez-Ivern
d51639075b Merge remote-tracking branch 'kanaka/master' into kotlin 2015-11-18 20:26:25 -06:00
Javier Fernandez-Ivern
69e9579c3b Updated kotlinc version in the Dockerfile 2015-11-18 17:15:19 -06:00
Javier Fernandez-Ivern
a9b2af9175 Merge branch 'kotlin' of https://github.com/ivern/mal into kotlin 2015-11-18 17:14:01 -06:00
Javier Fernandez-Ivern
0ab4fa142a Removed unnecessary casts now that Kotlin compiler bug is fixed 2015-11-18 17:13:43 -06:00
Javier Fernandez-Ivern
304ec7f386 Upgraded to Kotlin 1.0.0-beta-2423, fixed new deprecation warnings 2015-11-18 17:04:35 -06:00
Joel Martin
f045aba128 Makefile: fix recursive make of compiled impls.
Should fix #105
2015-11-18 16:32:53 -06:00
Joel Martin
78261adc04 miniMAL, perl: add native hash-map equality. 2015-11-18 15:39:46 -06:00
Joel Martin
a0627fe927 Merge pull request #115 from dubek/fix-ps-hash-equal
ps: Fix hash equal
2015-11-18 10:12:52 -06:00
Dov Murik
798cd0a0e3 ps: fix hash-map equality
* extract _keys and _hash_map_get to types.ps
* correct sequential types equals - only compare if *both* arguments are
  sequential
* implement equality for two hash-maps
2015-11-17 21:19:30 -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
036b01d337 Merge pull request #114 from dubek/equality-pure-mal
add examples/equality.mal
2015-11-17 16:32:40 -06:00
Dov Murik
513810af6b add examples/eqaulity.mal
Implementations that don't have proper native comparison of hash-maps
and sequences can load examples/equality.mal for a pure-mal
implementation.
2015-11-17 14:41:06 -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
Joel Martin
a076db29a0 examples/: add chouser's protocols.mal file.
Originally from: https://gist.github.com/Chouser/6081ea66d144d13e56fc
2015-11-12 17:03:17 -06:00
Joel Martin
cb0533b0e8 Move mal code examples from mal/ to examples/ 2015-11-12 17:00:55 -06:00
Joel Martin
3ac3435ee1 Merge pull request #111 from dubek/fix-go-hash-equality
go: fix hash equality
2015-11-12 09:29:58 -06:00
Dov Murik
6c75df55da go: fix hash-map equality 2015-11-12 10:11:34 -05:00
Joel Martin
a95b2ee9fd Merge pull request #109 from dubek/lua-fix-hash-map-equal
lua: fix hash-map equality
2015-11-10 20:52:51 -06:00
Joel Martin
bf76bff5fe Merge pull request #108 from dubek/tcl-impl
tcl: add --raw flag to allow running without Readline
2015-11-10 13:28:47 -06:00
Dov Murik
17db9b1860 lua: fix hash-map equality 2015-11-10 14:03:26 -05:00
Dov Murik
576ef3703a tcl: add --raw flag to allow running without Readline
The Readline library for Tcl (tclreadline) enables history
substitutions, which means that lines that begin with `^` or `!` are
preprocessed by readline.  This interferes with some step1 tests of the
`^` form (--> with-meta).

Now the Tcl implementation supports a `--raw` command line flag which
disables the readline library and opts for simple input from stdin. The
tests (Makefile) are run with `--raw`.
2015-11-10 13:11:49 -05:00
Joel Martin
6d3fc1be9a Fix hash-map equality in python and rpython. 2015-11-10 11:00:56 -06:00
Joel Martin
1aa085e9ae Merge pull request #104 from dubek/hashmap-equality-test
tests: step9: add hash-map equality tests
2015-11-10 09:56:19 -06:00
Joel Martin
20077371f2 Travis: add Tcl 2015-11-09 22:53:30 -06:00
Joel Martin
9bc96011e6 Merge pull request #106 from dubek/tcl-impl
Tcl implementation
2015-11-09 22:19:18 -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
f3ea3be300 runtest/travis: make soft mode the default.
Switch runtest.py option to --hard instead of --soft. This changes
tests marked as soft into a hard fail tests.
2015-11-09 21:16:38 -06:00
Dov Murik
54d9903c0c Tcl implementation 2015-11-09 22:15:15 -05:00
Joel Martin
595376919b Misc cleanup for midwest.io presentation. 2015-11-07 15:31:25 -06:00