join simple test
This commit is contained in:
parent
ce7121530d
commit
a29ec40032
2 changed files with 10 additions and 11 deletions
|
|
@ -1,10 +0,0 @@
|
|||
discard """
|
||||
targets: "c cpp"
|
||||
"""
|
||||
|
||||
from json import JsonParsingError
|
||||
import marshal
|
||||
|
||||
const nothing = ""
|
||||
doAssertRaises(JsonParsingError):
|
||||
var bar = marshal.to[int](nothing)
|
||||
|
|
@ -21,3 +21,12 @@ proc imported_func2*(a: cint): cstring {.importc, dynlib: findlib2().}
|
|||
|
||||
echo imported_func(1)
|
||||
echo imported_func2(1)
|
||||
|
||||
# issue #8946
|
||||
|
||||
from json import JsonParsingError
|
||||
import marshal
|
||||
|
||||
const nothing = ""
|
||||
doAssertRaises(JsonParsingError):
|
||||
var bar = marshal.to[int](nothing)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue