-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add warnings for unimplemented features. Update README.
- Loading branch information
1 parent
e0296b0
commit 2fdf3f6
Showing
6 changed files
with
71 additions
and
28 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
id,text,file,node,lineNumber | ||
expressions-Start-0,Hello there {0}.,expressions,Start,5 |
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,6 @@ | ||
title: Start | ||
--- | ||
<<set $name to "Sam">> | ||
|
||
Hello there {$name}. | ||
=== |
Binary file not shown.
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,23 @@ | ||
import os | ||
from .context import YarnRunner | ||
|
||
compiled_yarn_f = open(os.path.join(os.path.dirname( | ||
__file__), '../examples/expressions.yarnc'), 'rb') | ||
names_csv_f = open(os.path.join(os.path.dirname( | ||
__file__), '../examples/expressions.csv'), 'r') | ||
|
||
runner = YarnRunner(compiled_yarn_f, names_csv_f, autostart=False) | ||
|
||
# TODO: implement a test for expression parsing | ||
|
||
|
||
def test_expressions(): | ||
try: | ||
runner.resume() | ||
|
||
# the runner should throw an error | ||
raise Exception( | ||
"The runner ran without any issues. This test should fail. An Exception was expected.") | ||
except Exception as e: | ||
assert str( | ||
e) == "Yarn stories with interpolated inline expressions are not yet supported." |
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