Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test command line #1316

Merged
merged 17 commits into from
Jul 8, 2024
Prev Previous commit
Next Next commit
Fix
  • Loading branch information
raviqqe committed Jul 8, 2024
commit faeeace3eb26031d08fdbccaa64387885434afdd
13 changes: 12 additions & 1 deletion features/process-context/command-line.feature
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Feature: Command line
Scenario: Get a command line
Scenario: Get an argument
Given a file named "main.scm" with:
"""scheme
(import (scheme base) (scheme process-context))
Expand All @@ -8,3 +8,14 @@ Feature: Command line
"""
When I successfully run `scheme main.scm hello`
Then the stdout should contain "hello"

Scenario: Get two arguments
Given a file named "main.scm" with:
"""scheme
(import (scheme base) (scheme process-context))

(map write-string (command-line))
"""
When I successfully run `scheme main.scm hello world`
Then the stdout should contain "hello"
And the stdout should contain "world"
Loading