Carp/test
Erik Svedäng 48489a5771
feat: Implicit struct init (#1003)
* feat: Can omit .init in simple cases

* fix: Don't treat unqualified modules as interface sym:s

* feat: Can handle implicit init of type inside 'use':d module

* fix: Give deftypes and sumtypes correct parent environment!

* test: A few test cases

* refactor: Remove commented out code

Co-authored-by: Erik Svedang <erik@Eriks-iMac.local>
2020-11-23 09:59:35 +01:00
..
output chore: Move some examples to test/produces-output (#989) 2020-11-23 06:30:43 +01:00
produces-output chore: Move some examples to test/produces-output (#989) 2020-11-23 06:30:43 +01:00
add-c.carp Implement load-stack. 2020-06-28 19:53:43 +02:00
args.carp Add support for cross-compilation. 2020-10-10 20:01:18 +02:00
array.carp core: rename unsafe-range to range-or-default 2020-05-24 12:26:18 +02:00
binary.carp test: add assert-ref-equal, assert-just, and assert-nothing 2020-05-12 14:53:42 +02:00
byte_math.carp core: add a byte type 2019-11-01 10:52:34 +01:00
char.carp test: add char literal test 2020-05-18 09:52:01 +02:00
check.sh Fix nixpkgs build. 2020-11-14 15:28:17 +01:00
control_flow.carp Fix all nth usage 2019-10-31 06:23:23 -03:00
csquare.c Implement load-stack. 2020-06-28 19:53:43 +02:00
csquare.h Implement load-stack. 2020-06-28 19:53:43 +02:00
deftype.carp feat: Implicit struct init (#1003) 2020-11-23 09:59:35 +01:00
double_math.carp Use Double.approx to compare exp results 2020-05-13 16:52:32 +02:00
execute.sh Fix nixpkgs build. 2020-11-14 15:28:17 +01:00
filepath.carp The '(load)' command will work relative to the file containing it, if 2019-03-22 20:33:06 +01:00
fixture_file.txt dynamic: add read-file 2019-05-14 13:51:27 -04:00
fixture_foo.h tests: add regression tests for #288 2018-09-18 16:47:16 +02:00
float_math.carp core: make from-string better 2020-05-12 22:33:40 +02:00
format.carp test: use deftest everywhere 2018-11-08 07:16:52 +01:00
generics.carp test: add generics 2020-01-28 21:32:15 +01:00
heap.carp core: rename unsafe-range to range-or-default 2020-05-24 12:26:18 +02:00
init_global.carp Added --compile-fast to compile with tcc. 2020-05-21 20:04:54 +02:00
int8.carp Fixes StdInt.carp load in tests 2020-04-04 13:21:23 +01:00
int16.carp Fixes StdInt.carp load in tests 2020-04-04 13:21:23 +01:00
int32.carp Fixes StdInt.carp load in tests 2020-04-04 13:21:23 +01:00
int64.carp Fixes StdInt.carp load in tests 2020-04-04 13:21:23 +01:00
int_math.carp fix Map and Set behaviour for negative hash values 2018-12-01 18:01:02 +02:00
interface.carp Update test to account for constrained interfaces 2020-06-01 23:39:19 -04:00
introspect.carp Index arguments from 0 in with-copy 2020-08-18 22:52:56 -04:00
io.carp test: add assert-ref-equal, assert-just, and assert-nothing 2020-05-12 14:53:42 +02:00
long_math.carp core: fix Long_copy 2018-12-09 18:07:19 +02:00
macros.carp macros: add doto and doto-ref 2020-08-25 11:58:20 +02:00
map.carp core: make map’s higher order functions non-owning 2019-05-27 18:42:25 +02:00
maybe.carp add test cases for zero in maybe and result 2020-04-30 14:33:18 +02:00
memory.carp core: rename unsafe-range to range-or-default 2020-05-24 12:26:18 +02:00
nested.carp Add some more calls to implement to make tests pass 2020-05-10 13:32:22 -04:00
pattern.carp pattern: fix captures, add split and global-match-str 2020-02-09 13:42:39 +01:00
pointer.carp Merge 2020-05-11 16:10:35 +02:00
random.carp tests: remove determinism test 2020-10-15 13:16:49 +02:00
record.sh Fix nixpkgs build. 2020-11-14 15:28:17 +01:00
recursion.carp test: use deftest everywhere 2018-11-08 07:16:52 +01:00
regression.carp core: add Bool.zero 2020-06-23 12:26:53 +02:00
reload.carp Add remaining implements declarations 2020-05-10 22:53:35 -04:00
result.carp core: remove result.zero 2020-04-30 14:40:01 +02:00
safe_arithmetic.carp test: remove safe arithmetic on windows 2020-04-24 11:04:01 +02:00
short_circuiting.carp test: use deftest everywhere 2018-11-08 07:16:52 +01:00
sort.carp core: add sort flavors with custom comparators 2018-11-13 11:11:21 +01:00
Spec.hs Update Spec tests to handle new ConcreteNameTy 2020-05-04 17:58:01 -04:00
static_array.carp Adds unsafe-raw to StaticArray module 2020-11-07 17:49:41 +00:00
statistics.carp Fix all nth usage 2019-10-31 06:23:23 -03:00
string.carp Merge pull request #973 from jacereda/fix-suffix 2020-11-17 23:59:46 +01:00
sumtypes.carp Fix some memory errors (that should be compiler errors). 2020-05-05 14:08:07 +02:00
system.carp Add and update tests for open-file 2019-11-08 17:20:05 -07:00
tuples.carp core: autogenerate Tuple types and document 2020-05-24 11:49:27 +02:00
uint8.carp Fixes StdInt.carp load in tests 2020-04-04 13:21:23 +01:00
uint16.carp Fixes StdInt.carp load in tests 2020-04-04 13:21:23 +01:00
uint32.carp Fixes StdInt.carp load in tests 2020-04-04 13:21:23 +01:00
uint64.carp Fixes StdInt.carp load in tests 2020-04-04 13:21:23 +01:00
unicode.carp Merge 2020-05-11 16:10:35 +02:00
unsafe.carp Adds fn Unsafe.leak that prevents destructor from being run on a value 2020-04-10 14:56:20 +01:00
vector2.carp Working on generics. 2019-09-08 13:02:04 +02:00
vector3.carp Working on generics. 2019-09-08 13:02:04 +02:00
vectorn.carp test: add assert-ref-equal, assert-just, and assert-nothing 2020-05-12 14:53:42 +02:00