Skip to content

Commit

Permalink
resolve old error
Browse files Browse the repository at this point in the history
  • Loading branch information
tnelson committed Mar 14, 2024
1 parent 70df030 commit 5e45b21
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion forge/lang/alloy-syntax/parser.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ ParaDecls : /LEFT-PAREN-TOK @ParaDeclList? /RIGHT-PAREN-TOK
AssertDecl : /ASSERT-TOK Name? Block
CmdDecl : (Name /COLON-TOK)? (RUN-TOK | CHECK-TOK) (QualName | Block)? Scope? (/FOR-TOK Bounds)?

TestDecl : (Name /COLON-TOK)? (QualName | Block)? Scope? (/FOR-TOK Bounds)? /IS-TOK
TestDecl : (Name /COLON-TOK)? (QualName | Block) Scope? (/FOR-TOK Bounds)? /IS-TOK
(SAT-TOK | UNSAT-TOK | THEOREM-TOK | FORGE_ERROR-TOK)
TestExpectDecl : TEST-TOK? EXPECT-TOK Name? TestBlock
TestBlock : /LEFT-CURLY-TOK TestDecl* /RIGHT-CURLY-TOK
Expand Down
2 changes: 2 additions & 0 deletions forge/tests/error/main.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
;(list "expect-fun-no-args.frg" #rx"TODO")

;;;;;;;;;;;;;;;;;;;;;;;;

(list "./malformed-test-double.frg" #rx"FOR-TOK") ;; regression

;;;;;;; Source locations ;;;;;;;
(list "./loc/sig_use_loc_error.frg" #rx"sig_use_loc_error.frg:7:39") ; vs. reachable
Expand Down
5 changes: 5 additions & 0 deletions forge/tests/error/malformed-test-double.frg
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#lang forge

test expect {
{} is sat for {} is sat
}
3 changes: 0 additions & 3 deletions forge/tests/forge/relations/breakers.frg
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,6 @@ test expect {
-- Overlap with a previous test, but keep since it checks a valuable syntax foible
cardinalityCheckSyntax: { {#{a: A | some FrontDesk.p[a]}} > 1} is sat

-- expander.rkt:701:40: preds: attribute contains non-syntax value
-- BAD_ERROR_2: {no l} is sat for {A = `A0 + `A1} is sat

----- test "linear" -----

linearPossible: {} for {next is linear} is sat
Expand Down

0 comments on commit 5e45b21

Please sign in to comment.