Commit Graph

34 Commits

Author SHA1 Message Date
Tim Dévé
d7ad0b2629
feat: Adds Dynamic.sort & improves output of failing dynamic tests (#1411)
* feat: Adds Dynamic.sort

* test: Adds tests for Dynamic.sort

* refactor: Makes dynamic test handler display diff

of expected vs actual instead of displaying "true" : "true"

* test: Removes complex implementation of list-equal-unordered

Replaces it with sort + equal. While this is less "correct", having
complex untested functions within test files is undesirable. This
implementation is "good enough" for lists of integers.
2022-04-09 07:04:16 +02:00
Veit Heller
d3a6ca562f
docs: document core modules (#1271) 2021-07-05 14:48:35 +02:00
Veit Heller
f7785ad93d
fix: render submodules in html docs (#1242)
* fix: render submodules in html docs

* fix: also render deeply nested modules

* feat: no prefixes in nested submodule doc rendering

* fix:  fix text alignment of module index for sdl

* feat: make submodules expandable
2021-06-11 13:02:52 +02:00
Erik Svedäng
889f55fe8f
feat: Remove address (#1223)
* chore: Abuse deftemplate to get rid of Address

* chore: Avoid semicolon at end of define

* fix: address should be useable as an argument to a HOF

* chore: adapt examples to new address signature

* fix: Remove Address from typeOf

* fix: Remove more uses of Address

* fix: Remove more mentions of address in the Haskell code

* fix: Remove test that ensure you can't take the address of non-symbols

* refactor: Moved `address` to Pointer.carp

* refactor: Move address into Pointer module

Co-authored-by: Jorge Acereda <jacereda@gmail.com>
2021-05-27 22:04:46 +02:00
Veit Heller
dacc13560b
feat: add dynamic Map type (#1168)
* feat: add dynamic map prototype

* feat: feature parity for dynamic map

* docs: document dynamic map

* test: add dynamic map tests

* fix: defdynamics are handled in getBinderDescription

* test: i forgot to add dynamic tests, whoops
2021-02-11 09:12:58 +01:00
Veit Heller
bdaf96550f
refactor: use quasiquoting in STDLIB and go through array in quasiquote (#1135) 2021-01-21 06:20:03 +01:00
Jorge Acereda
58a61dd42e Add support for cross-compilation. 2020-10-10 20:01:18 +02:00
hellerve
9e2c2fe2fd test: add assert-ref-equal, assert-just, and assert-nothing 2020-05-12 14:53:42 +02:00
hellerve
e2b52655ef eval: initial working rewrite 2020-04-17 11:58:28 +02:00
Tim Deve
f2f3ea57c3 Doesn't compile assert-exit and assert-signal on Windows
These two assertions expect a *nix environment
and cause a compilation failure on windows

Creates stub implementation on Windows
2020-04-03 22:07:38 +01:00
Tim Deve
11e0eb5f56 Fixes wrongly named doc for assert-signal 2020-04-03 21:24:45 +01:00
hellerve
c6dafda518 core: reduce allocations in String.repeat 2019-10-28 18:13:40 +01:00
Jorge Acereda
85cacf538f Stronger types for Color 2019-09-11 20:24:09 +02:00
hellerve
e9fcf87ff5 core: remove stringcopy.append 2019-05-27 18:05:44 +02:00
Erik Svedäng
0049c13111 Renamed 'defdynamic' to 'defndynamic'. 2019-03-13 18:49:48 +01:00
Erik Svedäng
1dc8b536fc Deftype generates 'update' functions that expect refs to functions too. 2018-11-14 14:21:12 +01:00
hellerve
ca22bfc8cd test: use deftest everywhere 2018-11-08 07:16:52 +01:00
Craig Roy
92501770e6 Print results as part of test macro 2018-09-13 00:13:03 +01:00
hellerve
ede08bcc72 core: refactor colorization 2018-08-07 09:58:14 +02:00
hellerve
c82916612a core: document string, remove string-join 2018-06-15 16:38:34 +02:00
hellerve
c04aab7d47 core: document test 2018-06-14 10:49:28 +02:00
hellerve
99fb38de73 core: add assert-signal 2018-05-23 15:13:13 +02:00
hellerve
a55c953396 core: add inspection of forked processes (references #235) 2018-05-23 13:58:04 +02:00
Chris Hall
7c1dd210d7 Renaming: String.count -> String.length, Array.count -> Array.length
Issue #236
2018-05-23 10:03:42 +10:00
Chris Hall
b46b2a39e8 String.append is now by reference, StringCopy.append is by copy/linear
Adding memory leak tests to String.append and StringCopy.append

Issue #94
2018-05-20 14:16:10 +10:00
hellerve
619089aead core: change globals to vars in test 2018-02-23 17:25:15 +01:00
Erik Svedäng
26887f3716 Changed type signature of (set! ...) form. 2018-02-02 07:19:10 +01:00
Erik Svedäng
936dd8b26c Changed type of member getter method to always returning a Ref (used to be non-ref for primitive types). 2018-01-26 21:23:29 +01:00
Erik Svedäng
dc49804068 Raise error when applying a non-existing macro / dynamic function. 2017-12-17 15:20:06 +01:00
hellerve
89eb010045 tests: simplified 2017-11-27 14:45:14 +01:00
hellerve
6954766aa7 testing: with-test macro should return non-null on failure 2017-11-22 13:48:58 +01:00
hellerve
d346673a74 double: added all math function in math.h 2017-11-15 14:06:49 +01:00
hellerve
120116a70a vector2: integrated test suite 2017-10-25 13:07:52 +02:00
hellerve
631e2ab95f testing: added Test module 2017-10-23 16:07:54 +02:00