mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-27 01:34:02 +00:00
StringStream & more stdlib modules support for JS/NimScript (#14095)
* StringStream & more stdlib modules support for JS/NimScript * change back pegs test in line with #14134
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
discard """
|
||||
targets: "c js"
|
||||
output: '''
|
||||
@[]
|
||||
true
|
||||
https://example.com/test?format=jpg&name=orig##
|
||||
https://example.com/test?format=jpg&name=orig##text
|
||||
@@ -40,7 +40,7 @@ block t2813:
|
||||
"""
|
||||
var errors: seq[string] = @[]
|
||||
let tree = parseHtml(newStringStream(html), "test.html", errors)
|
||||
echo errors # Errors: </thead> expected,...
|
||||
doAssert errors.len == 0 # Errors: </thead> expected,...
|
||||
|
||||
var len = tree.findAll("tr").len # len = 6
|
||||
var rows: seq[XmlNode] = @[]
|
||||
|
||||
Reference in New Issue
Block a user