Commit Graph

456 Commits

Author SHA1 Message Date
Fabio Labella
e292efadc5 Add tests for string equality 2023-04-11 15:42:06 +01:00
Fabio Labella
f5bfdf402b List.take should work when n is greater than the list size 2023-04-11 15:42:06 +01:00
Fabio Labella
c8c07a32e6 Add more efficient List.take 2023-04-11 15:42:06 +01:00
Fabio Labella
7d4b56f1dd drop should work when n exceeds list size 2023-04-11 15:42:06 +01:00
Fabio Labella
dcee27d66b Integrate more efficient implementation of list drop 2023-04-11 15:42:06 +01:00
Fabio Labella
a174673391 add placeholder test suite for text 2023-04-11 15:42:06 +01:00
Fabio Labella
201b492cd4 list, string and bytes will have separate tests 2023-04-11 15:42:06 +01:00
Fabio Labella
7c4a67aabe Add equality over lists 2023-04-11 15:42:06 +01:00
Fabio Labella
af81214ec7 Equality works for numbers and records of numbers 2023-04-11 15:42:06 +01:00
Fabio Labella
1f1475f213 Equality on data type tags works 2023-04-11 15:42:06 +01:00
Fabio Labella
2aed386526 Introduce failing test cases to fix equality 2023-04-11 15:42:06 +01:00
Fabio Labella
b90b96674e Add more tests on literal 2023-04-11 15:42:06 +01:00
Fabio Labella
c6feef41ec Report error with complex pattern matching 2023-04-11 15:42:06 +01:00
Fabio Labella
01bbdd4265 Test matching in the middle of lists 2023-04-11 15:42:06 +01:00
Fabio Labella
69361722f9 Test cons and snoc pattern matching 2023-04-11 15:42:06 +01:00
Fabio Labella
2ff690cd88 Add assertions for pattern matching tests 2023-04-11 15:42:06 +01:00
Fabio Labella
e3e6a91509 Implement List.viewR 2023-04-11 15:42:06 +01:00
Fabio Labella
c4eac8b865 Add tests on List.length via pattern matching 2023-04-11 15:42:06 +01:00
Fabio Labella
634e2abdca Rearrange 2023-04-11 15:42:06 +01:00
Fabio Labella
a1d3f2b93c Add pattern matching helpers 2023-04-11 15:42:06 +01:00
Fabio Labella
0c05807172 Implement viewL 2023-04-11 15:42:06 +01:00
Fabio Labella
f4c3bc0350 Add failing test on list pattern matching 2023-04-11 15:42:06 +01:00
Fabio Labella
649c54499b Separate seq tests 2023-04-11 15:42:04 +01:00
Fabio Labella
ccf0fd6afa Add take 2023-04-11 15:29:49 +01:00
Fabio Labella
7d9766b72b Add (inefficient) List.drop 2023-04-11 15:29:49 +01:00
Fabio Labella
0eaa7425bc Add List.at 2023-04-11 15:29:49 +01:00
Fabio Labella
9130fce3b3 Add List.size 2023-04-11 15:29:49 +01:00
Fabio Labella
a947d0dc76 Remove repro 2023-04-11 15:29:49 +01:00
Fabio Labella
5aaebb24d9 Repro append bug 2023-04-11 15:29:49 +01:00
Fabio Labella
9327aa471d Start repro'ing chunked-list append bug 2023-04-11 15:29:49 +01:00
Fabio Labella
ec50e54530 Full append test after list fix 2023-04-11 15:29:49 +01:00
Fabio Labella
f49bd4d109 Remove redundant test cases 2023-04-11 15:29:49 +01:00
Fabio Labella
6599aa6731 Add List.++ (currently broken) 2023-04-11 15:29:49 +01:00
Fabio Labella
7d74cb21c0 Add snoc 2023-04-11 15:29:49 +01:00
Fabio Labella
b301a3708f Start working through List tests with manual checking 2023-04-11 15:29:49 +01:00
Fabio Labella
70bb72cd9e Instrument equality 2023-04-11 15:29:49 +01:00
Fabio Labella
09eda01bc2 Better test suite for List, but equality seems broken 2023-04-11 15:29:49 +01:00
Fabio Labella
b1bd6cfaf5 Start working through List test suite 2023-04-11 15:29:49 +01:00
Fabio Labella
13a46e8c5c Add list builder 2023-04-11 15:29:49 +01:00
Fabio Labella
754fe6e659 Super minimal list building block working 2023-04-11 15:29:49 +01:00
Fabio Labella
fac773d39e Minimal example of list builder 2023-04-11 15:29:49 +01:00
Fabio Labella
a1bf8866c8 Add basic List tests 2023-04-11 15:29:49 +01:00
Jared Forsyth
a58852b4fd [tls-test-chain] disable the other example.com, lets not rely on the network 2023-04-10 06:43:18 -05:00
Jared Forsyth
6955a1886a [tls-test-chain] get tests passing 2023-04-10 06:04:57 -05:00
Dan Doel
83b4442e29 Add serialized test cases to the jit tests 2023-04-07 18:34:13 -04:00
Jared Forsyth
64f4c4d8b2 Merge branch 'trunk' into tls 2023-04-06 09:39:08 -05:00
Jared Forsyth
64e9da5fca Disable the 'example.com' tests until scheme output correctly escapes '\r' 2023-04-04 10:46:57 -05:00
Jared Forsyth
d5fe545cf1 [fix-example-com] hm 2023-04-04 10:04:25 -05:00
Jared Forsyth
4d0dffca18 [fix-example-com] hrmmm 2023-04-04 10:04:25 -05:00
Jared Forsyth
e13bb654cf Fix example.com tests in tls-tests and tcp-tests
Maybe the host changed recently to require this other line in the GET request?

interpreter-tests and jit-tests should work again!
2023-04-04 10:04:25 -05:00
Jared Forsyth
194a62f4d2 [tls] ok figured out the example.com issue 2023-04-04 06:44:02 -05:00
Jared Forsyth
7c4cfca5bc [tls] yay intermediate + root works 2023-04-04 06:42:47 -05:00
Jared Forsyth
dc93871f96 [tls] going to switch things 2023-04-04 06:27:49 -05:00
Jared Forsyth
7fbbb96c4a [tls] add a test for self-signed 2023-03-28 08:35:44 -05:00
Jared Forsyth
31bc377160 [tls] fixup 2023-03-21 08:59:12 -05:00
Jared Forsyth
5fb3f67cb7 [tls] fix tcp 2023-03-21 08:58:36 -05:00
Jared Forsyth
9ce802d0d9 [tls] ok , but why is tcp not working 2023-03-20 21:52:31 -05:00
Jared Forsyth
29d6c755cb [tls] wird 2023-03-20 21:38:16 -05:00
Jared Forsyth
48187cc231 ok 2023-03-20 21:36:03 -05:00
Jared Forsyth
aa197cb313 notrace 2023-03-20 21:35:31 -05:00
Jared Forsyth
d32a91981c [tls] hm 2023-03-20 21:26:33 -05:00
Jared Forsyth
09a24c01ea [tls] yay jit tests passing too now 2023-03-20 21:24:20 -05:00
Jared Forsyth
25a4f4e768 [tls] ok 2023-03-20 20:55:16 -05:00
Jared Forsyth
932a35d254 [tls] better test 2023-03-20 20:42:04 -05:00
Jared Forsyth
4ab9b13870 [tls] some simplificationsss 2023-03-18 22:46:50 -05:00
Jared Forsyth
d888528ac0 [tls] cleanups 2023-03-18 22:25:16 -05:00
Jared Forsyth
f97e28691a [tls] yasss finally it works 2023-03-18 22:23:34 -05:00
Jared Forsyth
841fb8b9dd [tls] why isnt euqality working like at all? 2023-03-18 21:35:26 -05:00
Jared Forsyth
2820e72c4b [tls] woah! maybe this is working? 2023-03-18 21:22:40 -05:00
Jared Forsyth
f84cd498a9 [tls] ok 2023-03-18 20:29:26 -05:00
Jared Forsyth
53d4e90043 [tls] re-enable some things 2023-03-18 19:44:36 -05:00
Jared Forsyth
7a6f069321 [tls] trying stuff 2023-03-18 19:40:39 -05:00
Jared Forsyth
bf0b0b7a14 [tls] ok back to working test 2023-03-14 20:56:55 -05:00
Jared Forsyth
771a7eaf81 [tls] feeling my way forward on this 2023-03-11 14:35:07 -06:00
Jared Forsyth
9e8e1d3c8e [tls] ok finally fix eq 2023-03-11 12:06:22 -06:00
Jared Forsyth
4bf3162961 [tls] lots of stuff 2023-03-11 11:43:24 -06:00
Jared Forsyth
3b35749405 [tls] ok little more progress 2023-03-11 11:38:47 -06:00
Jared Forsyth
b35685cd1c [tls] figure out mlist 2023-03-11 11:25:59 -06:00
Jared Forsyth
55c458160e [tls] fixing the tests for strict match checking 2023-03-11 10:49:58 -06:00
Jared Forsyth
f774c2e33e [tls] flail 2023-03-11 10:24:40 -06:00
Jared Forsyth
c2ab19354f [tls] stub stub stub 2023-03-07 07:58:51 -06:00
Jared Forsyth
d444c903a5 [tls] some server tests 2023-03-07 07:57:33 -06:00
Jared Forsyth
854f1bcb22 [tls] some tests 2023-03-07 07:56:40 -06:00
Jared Forsyth
482119fe15 [tls] move to separate file 2023-03-07 07:47:15 -06:00
Jared Forsyth
3f6706425c [tls] some client tests 2023-03-06 08:31:14 -06:00
Jared Forsyth
011811b12a [tls] better handling of errors 2023-03-06 08:29:21 -06:00
Jared Forsyth
f93131f605 Merge branch 'tcp' into tls 2023-03-06 08:26:39 -06:00
Jared Forsyth
880787cf07 [tcp] helper 2023-03-06 08:20:35 -06:00
Jared Forsyth
05f31d47f4 [tcp] more checks 2023-03-06 08:20:35 -06:00
Jared Forsyth
38344ff767 [tcp] ok passing on jit! 2023-03-06 08:20:35 -06:00
Jared Forsyth
b8a2c35727 [tcp] add a nice test that passes on interpreter 2023-03-06 08:20:35 -06:00
Jared Forsyth
e3bf626ccd [tcp] socket accept 2023-03-06 08:20:35 -06:00
Jared Forsyth
d045cb0514 [tcp] handle contract 2023-03-06 08:20:35 -06:00
Jared Forsyth
036bdcc6d1 [tcp] first bit 2023-02-27 23:29:42 -06:00
Jared Forsyth
9f14ac0cf7 [tls] a tcp 2023-02-27 23:18:53 -06:00
Fabio Labella
3564ed78c5 Thread killed typeLink test passing 2023-02-22 11:19:36 +00:00
Fabio Labella
1467e91e1c Better structure for threadKilled test 2023-02-22 11:19:36 +00:00
Fabio Labella
78153f6f45 Intercept async exceptions 2023-02-22 11:19:36 +00:00
Fabio Labella
5e9c1e23e7 Add tests for ThreadKilled typeLink 2023-02-22 11:19:36 +00:00
Fabio Labella
2ee1f5a118 Correct output 2023-02-17 14:32:50 +00:00
Fabio Labella
b71393e757 Slight refactor of test suite 2023-02-17 14:19:09 +00:00
Fabio Labella
88122d36e2 Better assertion for testing bug 2023-02-17 13:35:49 +00:00
Fabio Labella
40fef4d8ce Catch all other stray exceptions 2023-02-17 12:53:27 +00:00
Fabio Labella
2502776a8f Assert on message from thread killed exception 2023-02-16 14:46:02 +00:00
Fabio Labella
601ba2fc93 Enable all tests 2023-02-16 14:36:13 +00:00
Fabio Labella
c0f935dfcd Encode failure shape (typelink still not done properly) 2023-02-16 14:05:11 +00:00
Fabio Labella
22402b4a08 Distinguish test cases 2023-02-16 10:48:55 +00:00
Fabio Labella
6ad8fe9c88 Add assertions for tryEval tests 2023-02-15 23:55:43 +00:00
Fabio Labella
bd3a3a587e Test tryEval on both completions and thread kills 2023-02-15 23:48:12 +00:00
Fabio Labella
ec6c8ef9ea Finally managed to get the internal fork to work 2023-02-15 22:49:43 +00:00
Fabio Labella
a0d36fdc51 Point ucm at fork of internal compiler lib 2023-02-15 06:47:04 +00:00
Fabio Labella
949f677afc Add stub for tryEval 2023-02-15 00:19:29 +00:00
Fabio Labella
63ef9953ca Consolidate into single test suite 2023-02-14 23:00:21 +00:00
Paul Chiusano
0b19840e60
Merge pull request #3815 from unisonweb/scheme-concurrency
Add concurrency primitives for the JIT, based on Racket threads
2023-02-13 13:44:48 -06:00
Fabio Labella
a3249914a0 Thread kill test is fixed, but Racket logs thread kills 2023-02-13 16:52:57 +00:00
Fabio Labella
774addbab5 Fix representation of Option 2023-02-13 14:08:39 +00:00
Fabio Labella
b7d8eb0802 Disable failing tests 2023-02-12 21:05:26 +00:00
Fabio Labella
fc3561929d Add binding for thread kill, currently broken on arity mismatch 2023-02-12 20:10:37 +00:00
Fabio Labella
c51908ede0 Rearrange tests for forking and killing threads 2023-02-12 19:23:25 +00:00
Fabio Labella
a88a885056 Add bindings for sleep 2023-02-12 17:56:54 +00:00
Fabio Labella
a01ab41c90 Complex concurrent test works 2023-02-12 17:49:13 +00:00
Fabio Labella
07db871e1b Add binding for fork 2023-02-12 17:48:09 +00:00
Fabio Labella
e0bc2e311a Disable buggy try-read for now 2023-02-12 16:44:21 +00:00
Fabio Labella
25d910ef10 Reinstate existing tests, tryRead still broken (perhaps macro error?) 2023-02-12 02:16:51 +00:00
Fabio Labella
f8cf62f201 wip: test tryRead, bug in the Option wrapping on success 2023-02-12 02:01:41 +00:00
Fabio Labella
18d3c0aa30 Simple promise tests pass after upstream fix 2023-02-12 01:34:42 +00:00
Fabio Labella
24e8440475 Update comment 2023-02-11 08:05:37 +00:00
Fabio Labella
5e9eee997f Test both paths of catchAll in threadTest 2023-02-11 08:01:26 +00:00
Fabio Labella
c910649ae5 Add binding for Promise (blocked on upstream changes)
Just like CAS, the Unison code used by native compilation needs to
keep track of type info for builtins out of band if they return
unboxed values
2023-02-11 07:51:51 +00:00
Fabio Labella
2ceb3e969a CAS tests fixed by upstream change 2023-02-10 20:07:28 +00:00
Fabio Labella
17b3708f01 Broken: add bindings for Ref.cas 2023-02-10 18:06:21 +00:00
Fabio Labella
e73d34e8e6 Add bindings for Ref.Ticket 2023-02-10 17:32:03 +00:00
Fabio Labella
55b6b817a8 Add binding for readCas 2023-02-10 17:27:46 +00:00
Fabio Labella
13e089a318 Add note on testing paths for threads 2023-02-10 17:10:24 +00:00
Jared Forsyth
2b9f6203b0 [racket-crypto] simpler 2023-02-10 11:07:29 -06:00
Jared Forsyth
04b1202081 Merge branch 'trunk' into racket-crypto 2023-02-10 11:07:29 -06:00
Fabio Labella
71d424d21a First bunch of tests pass! 2023-02-10 15:23:34 +00:00
Fabio Labella
2a78cb2dea Start with IO based version of Ref test 2023-02-10 15:20:42 +00:00
Fabio Labella
73d5e994c9 Remove stale comment 2023-02-10 15:20:42 +00:00
Fabio Labella
7228f01d22 Start incrementally porting concurrency tests to scheme 2023-02-10 15:20:42 +00:00
Fabio Labella
cb7ebb0b89 Add test suite for concurrency 2023-02-10 15:20:26 +00:00
Fabio Labella
e5ddb125a3 Shorter sleeps in concurrency tests 2023-02-10 15:20:26 +00:00
Fabio Labella
3d6b57bfd7 Add test for fork, sleep and tryEval 2023-02-10 15:20:26 +00:00
Fabio Labella
743ea77d38 Fill in concurrency tests 2023-02-10 15:20:26 +00:00
Fabio Labella
35db23190c Notes on test for fork, sleep, kill and tryEval 2023-02-10 15:20:26 +00:00
Fabio Labella
a0a0a5e77b Include concurrency tests in test script for native 2023-02-10 15:20:26 +00:00
Fabio Labella
3182d150e3 Add basic scaffolding for concurrency tests 2023-02-10 15:20:26 +00:00
Paul Chiusano
19dc8a62a8
Merge pull request #3819 from unisonweb/fix/scheme-abilities
Make scheme jit transcript work
2023-02-10 09:17:28 -06:00
Dan Doel
57f90a0e52 Update jit tests output 2023-02-10 10:03:28 -05:00
Jared Forsyth
4a3e8db582 [racket-crypto] fix scripts 2023-02-10 07:08:53 -06:00
Jared Forsyth
271cf25ad2 [racket-crypto] add to tests.u 2023-02-10 07:01:56 -06:00
Paul Chiusano
5fe0f5ead6 Added some type signatures and comments to the builtin testing transcript 2023-02-08 09:55:03 -06:00
Paul Chiusano
cc3fb9211b Modified test suite runner - no longer uses IO refs
Also changed jit-tests.sh to fetch latest scheme generating library
2023-02-07 17:50:08 -06:00
Paul Chiusano
3bd5ce3de9 fixup 2023-02-03 19:58:24 -06:00
Paul Chiusano
4fe10008ca turn off echo 2023-02-03 19:51:30 -06:00
Paul Chiusano
eeed325a96 Add builtins test suite, which can be run using the JIT or interpreted 2023-02-03 19:34:13 -06:00