-
Notifications
You must be signed in to change notification settings - Fork 6
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
Showing
39 changed files
with
2,178 additions
and
2,178 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
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 |
---|---|---|
@@ -1,27 +1,27 @@ | ||
Feature: Generating documentation for a package | ||
Background: | ||
Given a file named "pen.json" with: | ||
"""json | ||
{ | ||
"type": "library", | ||
"dependencies": {} | ||
} | ||
""" | ||
"""json | ||
{ | ||
"type": "library", | ||
"dependencies": {} | ||
} | ||
""" | ||
|
||
Scenario: Generate documentation for a package | ||
Given a file named "Foo.pen" with: | ||
"""pen | ||
# Do something nice. | ||
Foo = \() none { | ||
none | ||
} | ||
""" | ||
"""pen | ||
# Do something nice. | ||
Foo = \() none { | ||
none | ||
} | ||
""" | ||
When I run the following script: | ||
"""sh | ||
pen document \ | ||
--name Foo \ | ||
--url https://github.com/foo/foo \ | ||
--description "This package is cool." \ | ||
> Foo.md | ||
""" | ||
"""sh | ||
pen document \ | ||
--name Foo \ | ||
--url https://github.com/foo/foo \ | ||
--description "This package is cool." \ | ||
> Foo.md | ||
""" | ||
Then a file named "Foo.md" should contain "`Foo` package" |
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 |
---|---|---|
@@ -1,36 +1,36 @@ | ||
Feature: Formatting module files | ||
Background: | ||
Given a file named "pen.json" with: | ||
"""json | ||
{ | ||
"type": "library", | ||
"dependencies": {} | ||
} | ||
""" | ||
"""json | ||
{ | ||
"type": "library", | ||
"dependencies": {} | ||
} | ||
""" | ||
|
||
Scenario: Format module files | ||
Given a file named "Foo.pen" with: | ||
"""pen | ||
Foo = \() none { | ||
"""pen | ||
Foo = \() none { | ||
none | ||
} | ||
""" | ||
none | ||
} | ||
""" | ||
When I successfully run `pen format` | ||
Then a file named "Foo.pen" should contain exactly: | ||
"""pen | ||
Foo = \() none { | ||
none | ||
} | ||
""" | ||
"""pen | ||
Foo = \() none { | ||
none | ||
} | ||
""" | ||
|
||
Scenario: Check if module files are formatted | ||
Given a file named "Foo.pen" with: | ||
"""pen | ||
Foo = \() none { | ||
"""pen | ||
Foo = \() none { | ||
none | ||
} | ||
""" | ||
none | ||
} | ||
""" | ||
When I run `pen format --checked` | ||
Then the exit status should not be 0 |
Oops, something went wrong.