Commit Graph

292 Commits

Author SHA1 Message Date
Mitchell Rosen
8871927c6e more path, name, and name segment work (doesn't build yet) 2024-01-24 11:01:22 -05:00
Travis Staton
4b8231278b
complete patterns in tests/methodical/abilities.u 2023-04-13 21:14:11 -04:00
Travis Staton
326ad64c16
complete patterns in console1 2023-04-13 21:11:57 -04:00
Travis Staton
1739cafc83
fix pattern coverage in tictactoe2 2023-02-27 11:13:11 -05:00
Travis Staton
60482576b6
fix pattern coverage in sequence-literal-argument-parsing.u 2023-02-27 11:13:11 -05:00
Travis Staton
1488d7fc0d
fix pattern coverage in sequence-at-0 2023-02-27 11:13:10 -05:00
Travis Staton
45238c72e8
fix pattern coverage in r4x 2023-02-27 11:13:10 -05:00
Travis Staton
f38e5d3a1c
fix pattern coverage in r3 2023-02-27 11:13:10 -05:00
Travis Staton
f1c74c22f3
fix pattern coverage in r2 2023-02-27 11:13:10 -05:00
Travis Staton
9724f26c21
fix pattern coverage in pattern-matching2.u 2023-02-27 11:13:10 -05:00
Travis Staton
e8c6ad0611
fix pattern coverage in pattern-matching.u 2023-02-27 11:13:10 -05:00
Travis Staton
344949c036
fix pattern coverage in pattern-match-seq 2023-02-27 11:13:10 -05:00
Travis Staton
6b0021f1cd
complete patterns in parenthesized-blocks 2023-02-27 11:13:10 -05:00
Travis Staton
c0da1727c0
complete patterns in pattern-matching.u 2023-02-27 11:13:10 -05:00
Travis Staton
271a7211af
complete patterns in inner-lambda2 2023-02-27 11:13:10 -05:00
Travis Staton
8d2e57f29a
complete patterns in inner-lambda.u 2023-02-27 11:13:10 -05:00
Travis Staton
21a2fdff08
complete patterns in imports.u 2023-02-27 11:13:09 -05:00
Travis Staton
e63e37c272
complete patterns in caseguard.u 2023-02-27 11:13:09 -05:00
Paul Chiusano
b5bfbd032b fix test suite 2022-12-07 11:58:32 -06:00
Chris Penner
1031c4f54f Remove ambient trash file 2022-01-06 10:26:15 -06:00
Chris Penner
350baf865e Define local |> operator just for tictactoe 2021-12-15 18:06:35 -06:00
Chris Penner
c4fc84a46c Fix bad replacements in unison typechecking tests 2021-12-15 17:22:47 -06:00
Chris Penner
e23067e267 Remove infix backtick syntax from more unison source 2021-12-15 17:00:56 -06:00
Chris Penner
295b8bb96b Merge branch 'trunk' into sam/remove-backticks-termparser 2021-12-15 15:57:05 -06:00
Dan Doel
dd5d720836 Rework universal comparison for Float 2021-11-02 11:33:52 -04:00
Sameer Kolhar
11cf92bd57 attempt to fix broken tests 2021-10-30 17:21:52 +02:00
Dan Doel
e4b974cac2 Add tests for compare corner cases 2021-10-14 17:40:23 -04:00
rlmark
ac2bc29849 fixes tests and transcripts 2021-08-24 11:33:27 -07:00
Dan Doel
fc5b8b86ef Disallow floating point patterns, with an informative error 2021-08-05 18:00:50 -04:00
Paul Chiusano
168afdc0ee update pretty-printer to use multi-guard syntax and improve tests 2021-07-20 00:45:03 -04:00
Paul Chiusano
f31f89085e make AbsN a complete pattern 2021-07-20 00:44:26 -04:00
Paul Chiusano
eb489a2bca Allow multiple guards to be attached to a case in the parser 2021-07-19 17:56:36 -04:00
Paul Chiusano
4418667b79
Merge pull request #1780 from unisonweb/topic/abilities-fixes
New ability inference algorithm that better handles recursive functions
2021-06-29 16:22:21 -04:00
Dan Doel
66ecee2e55 Add a signature to a test that now requires it 2021-06-28 11:42:02 -04:00
Dan Doel
2e84249fef Fix EQLF and LEQF implementations
They were writing back 0.0 and 1.0 to the stack as boolean proxies,
rather than integer 0 and 1.
2021-06-21 12:59:34 -04:00
Dan Doel
994f38d10b Add tests 2021-06-11 14:18:00 -04:00
Dan Doel
7c4dda9aea Merge branch 'trunk' into topic/abilities-fixes 2021-06-07 15:15:48 -04:00
Dan Doel
5915f7c8b8 Tweak stream.u type signatures
- The definitions in this file used a combination of signatures that was
  very hard to make work, with no annotations on some functions, and
  annotations with unnecessarily general rows in others.
- The checking could possibly be made better, but in an effort to keep
  things from getting too complicated for now, just tweak the type
  signatures.
2021-06-07 11:26:05 -04:00
Dan Doel
4a31323811 Add some matching tests 2021-05-12 11:35:33 -04:00
Dan Doel
112cdb4de7 Add a test case for the as patter mixup 2021-05-05 16:10:36 -04:00
Hans Schuster
3ee004bd72 Allow redundant commas in lists
Allows multiple commas leading, trailing and between elements (Issue 1841)
2021-03-24 19:35:12 +01:00
Dan Doel
e25c6ea34a Merge branch 'trunk' into topic/abilities-fixes 2021-02-23 14:29:29 -05:00
Dan Doel
5878c61410 Fix a corner case in abilityCheck' 2021-02-17 15:50:33 -05:00
Dan Doel
86fdd87eb3 More matching in the pattern-matching test 2021-02-10 16:07:57 -05:00
Paul Chiusano
84e10dd436 Merge remote-tracking branch 'origin/trunk' into topic/abilities-fixes
# Conflicts:
#	parser-typechecker/src/Unison/Typechecker/Context.hs
2021-01-04 14:20:19 -05:00
Dan Doel
4632c10791 Add a test case 2020-12-09 11:06:22 -05:00
Paul Chiusano
e784107d64 Implement fix. There were lots of tests that were inadvertently relying on the bug. 2020-10-22 22:33:12 -04:00
Rúnar
8c1c57e195
Merge pull request #1732 from unisonweb/fix/1578
Allow suffix-based name resolution to refer to definitions in the current file
2020-10-21 20:21:57 -04:00
Dan Doel
6f8a365695 Add a small test case for proper handler floating 2020-10-21 11:05:12 -04:00
Paul Chiusano
608ad4830c fix unit tests and regenerate transcripts
I was puzzled about the change to the blocks.md transcript at first. What's happening: the previous version of the transcript was going through TDNR, and was failing the cycle check for mutually recursive lambdas. The new version isn't going through TDNR at all, it's just doing ordinary typechecking of a cycle, and cycles don't have access to any abilities so it's failing with the expected error now. Arguably, the example should have used the FQN so TDNR wasn't involved in the previous example.
2020-10-20 18:26:46 -04:00