-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
82a7706
commit fa05d5a
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#lang racket/base | ||
|
||
(require rackunit racket/port) | ||
|
||
(check-equal? | ||
(with-output-to-string | ||
(lambda () (dynamic-require "todo-test.pie" #f))) | ||
"<pkgs>/pie/todo-test.pie:10.15: TODO:\n n : Nat\n n-1 : Nat\n peas-of-n-1 : (Vec Atom n-1)\n------------------------------\n Atom\n\n\n<pkgs>/pie/todo-test.pie:10.20: TODO:\n n : Nat\n n-1 : Nat\n peas-of-n-1 : (Vec Atom n-1)\n------------------------------\n (Vec Atom n-1)\n\n\n<pkgs>/pie/todo-test.pie:13.17: TODO: Nat\n\n<pkgs>/pie/todo-test.pie:15.19: TODO: \n (Π ((n Nat))\n (Vec Atom n))\n\n\n") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#lang pie | ||
|
||
(claim peas (Pi ((n Nat)) (Vec Atom n))) | ||
(define peas | ||
(λ (n) | ||
(ind-Nat n | ||
(lambda (k) (Vec Atom k)) | ||
vecnil | ||
(λ (n-1 peas-of-n-1) | ||
(vec:: TODO TODO))))) | ||
|
||
(claim some-nat Nat) | ||
(define some-nat TODO) | ||
(claim multi-line (Pi ((n Nat)) (Vec Atom n))) | ||
(define multi-line TODO) |