-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix simple value is not recognized in indents #8
- Loading branch information
1 parent
b9a3870
commit 3986908
Showing
4 changed files
with
90 additions
and
39 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import neon | ||
|
||
NEON_INDENTED_LIST_VALUE = """ | ||
- | ||
aaa | ||
""" | ||
|
||
|
||
def test_indented_list_value(): | ||
assert neon.decode(NEON_INDENTED_LIST_VALUE) == ["aaa"] | ||
|
||
|
||
NEON_SIMPLE_VALUE = """ | ||
hello | ||
""" | ||
|
||
|
||
def test_simple_value(): | ||
assert neon.decode(NEON_SIMPLE_VALUE) == "hello" | ||
|
||
|
||
NEON_SIMPLE_LIST_VALUE = """ | ||
- | ||
""" | ||
|
||
|
||
def test_simple_list_value(): | ||
assert neon.decode(NEON_SIMPLE_LIST_VALUE) == [None] |