Skip to content

Commit

Permalink
Rename files examples/faculty to examples/factorial
Browse files Browse the repository at this point in the history
Also correct example file to 2nd version in README
  • Loading branch information
jgbyrne committed Aug 19, 2022
1 parent 35b0b82 commit 17f5e20
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ factorial(4)
```
> ```
> $ tokay examples/faculty.tok
> $ tokay examples/factorial.tok
> 24
> ```
Expand All @@ -176,12 +176,12 @@ print(factorial(int(Number)))
```
> ```
> $ tokay examples/faculty.tok -- "5 6 ignored 7 other 14 yeah"
> $ tokay examples/factorial2.tok -- "5 6 ignored 7 other 14 yeah"
> 120
> 720
> 5040
> 87178291200
> $ tokay examples/faculty.tok
> $ tokay examples/factorial2.tok
> 5
> 120
> 6
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ fn examples() {
);

assert_eq!(
run(include_str!("../examples/faculty.tok"), ""),
run(include_str!("../examples/factorial.tok"), ""),
Ok(Some(value!(24)))
);

Expand Down

0 comments on commit 17f5e20

Please sign in to comment.