mirror of
https://github.com/status-im/NimYAML.git
synced 2025-02-10 10:16:33 +00:00
Support updated yaml-dev-kit data layout
This commit is contained in:
parent
778799e4ff
commit
121492d4c6
@ -4,7 +4,7 @@
|
|||||||
# See the file "copying.txt", included in this
|
# See the file "copying.txt", included in this
|
||||||
# distribution, for details about the copyright.
|
# distribution, for details about the copyright.
|
||||||
|
|
||||||
import os, terminal
|
import os, terminal, strutils
|
||||||
import tmlParser, common
|
import tmlParser, common
|
||||||
import "../yaml"
|
import "../yaml"
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ try:
|
|||||||
for kind, dirPath in walkDir("yaml-dev-kit"):
|
for kind, dirPath in walkDir("yaml-dev-kit"):
|
||||||
block curTest:
|
block curTest:
|
||||||
if kind == pcDir:
|
if kind == pcDir:
|
||||||
if dirPath[^4..^1] in [".git", "name", "tags"]: continue
|
if dirPath[^4..^1] in [".git", "name", "tags", "meta"]: continue
|
||||||
var
|
var
|
||||||
tagLib = initExtendedTagLibrary()
|
tagLib = initExtendedTagLibrary()
|
||||||
parser = newYamlParser(tagLib)
|
parser = newYamlParser(tagLib)
|
||||||
@ -36,7 +36,7 @@ try:
|
|||||||
expected = parseTmlStream(
|
expected = parseTmlStream(
|
||||||
newFileStream(dirPath / "test.event"), tagLib)
|
newFileStream(dirPath / "test.event"), tagLib)
|
||||||
styledWriteLine(stdout, fgGreen, "[test] ", fgWhite,
|
styledWriteLine(stdout, fgGreen, "[test] ", fgWhite,
|
||||||
expandSymlink(dirPath / "==="), resetStyle)
|
strip(readFile(dirPath / "===")), resetStyle)
|
||||||
while not actual.finished():
|
while not actual.finished():
|
||||||
let actualEvent = actual.next()
|
let actualEvent = actual.next()
|
||||||
if expected.finished():
|
if expected.finished():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user