Skip to content

Commit

Permalink
update basic-consts test
Browse files Browse the repository at this point in the history
  • Loading branch information
lcnr committed Apr 11, 2022
1 parent fe3e563 commit 2a9fadc
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/decl/test/basic-consts.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,26 @@
(CrateDecl (term (TheCrate (crate (TraitDecl AdtDecl_Foo ConstDecl_Malformed)))))
(Env (term (env-for-crate-decl CrateDecl)))
)
(traced '()
(decl:test-cannot-prove
Env
(crate-ok-goal (CrateDecl) CrateDecl)))
)

;; Program:
;;
;; trait Debug { }
;; struct Foo<T: Debug> { }
;; const WF<T: Debug>: Foo<T>;
(redex-let*
formality-decl

((TraitDecl (term (Debug (trait ((TyKind Self)) () ()))))
(AdtDecl_Foo (term (Foo (struct ((TyKind T)) ((Implemented (Debug (T)))) ((Foo ()))))))
(ConstDecl_Wf (term (Wf (const ((TyKind T)) ((Implemented (Debug (T)))) (TyRigid Foo (T))))))
(CrateDecl (term (TheCrate (crate (TraitDecl AdtDecl_Foo ConstDecl_Wf)))))
(Env (term (env-for-crate-decl CrateDecl)))
)
(traced '()
(decl:test-can-prove
Env
Expand Down

0 comments on commit 2a9fadc

Please sign in to comment.