-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug where output was not caught when importing
- Loading branch information
1 parent
d71fbdf
commit beebeb5
Showing
9 changed files
with
97 additions
and
12 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
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
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 @@ | ||
- tab: "My tab" | ||
contexts: | ||
- testcases: | ||
- expression: 'echo("input-1")' | ||
return: "input-1" | ||
- expression: 'echo("input-2")' | ||
return: "input-2" | ||
|
15 changes: 15 additions & 0 deletions
15
tests/exercises/echo-function/solution/top-level-output.js
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 @@ | ||
function echo(content) { | ||
return content; | ||
} | ||
|
||
|
||
function noEcho(content) { | ||
// Do nothing. | ||
} | ||
|
||
function toString(number) { | ||
return number.toString() | ||
} | ||
|
||
|
||
console.log("This is top-level output"); |
13 changes: 13 additions & 0 deletions
13
tests/exercises/echo-function/solution/top-level-output.py
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,13 @@ | ||
def echo(content): | ||
return content | ||
|
||
|
||
def no_echo(content): | ||
pass | ||
|
||
|
||
def to_string(n): | ||
return str(n) | ||
|
||
|
||
print("Hallo?") |
10 changes: 10 additions & 0 deletions
10
tests/exercises/echo-function/solution/top-level-output.sh
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,10 @@ | ||
function my_echo { | ||
echo "$1" | ||
} | ||
|
||
|
||
function no_echo { | ||
: # Do nothing here | ||
} | ||
|
||
echo "Hallo, this is output." |
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