Skip to content

Write the first output to :stderr otherwise it causes the first test to fail #93

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compiled_starters/elixir/lib/main.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule CLI do
case args do
["tokenize", filename] ->
# You can use print statements as follows for debugging, they'll be visible when running tests.
IO.puts("Logs from your program will appear here!")
IO.puts(:stderr, "Logs from your program will appear here!")

case File.read(filename) do
{:ok, file_contents} ->
Expand Down
2 changes: 1 addition & 1 deletion solutions/elixir/01-ry8/diff/lib/main.ex.diff
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
case args do
["tokenize", filename] ->
- # You can use print statements as follows for debugging, they'll be visible when running tests.
- IO.puts("Logs from your program will appear here!")
- IO.puts(:stderr, "Logs from your program will appear here!")
-
case File.read(filename) do
{:ok, file_contents} ->
Expand Down
2 changes: 1 addition & 1 deletion starter_templates/elixir/code/lib/main.ex
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ defmodule CLI do
case args do
["tokenize", filename] ->
# You can use print statements as follows for debugging, they'll be visible when running tests.
IO.puts("Logs from your program will appear here!")
IO.puts(:stderr, "Logs from your program will appear here!")

case File.read(filename) do
{:ok, file_contents} ->
Expand Down