This commit is contained in:
parent
4164ec4f8b
commit
9079517d71
2 changed files with 20 additions and 0 deletions
10
tests/stdlib/tstreams3.nim
Normal file
10
tests/stdlib/tstreams3.nim
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
discard """
|
||||
file: "tstreams3.nim"
|
||||
output: "threw exception"
|
||||
"""
|
||||
import streams
|
||||
|
||||
try:
|
||||
var fs = openFileStream("shouldneverexist.txt")
|
||||
except IoError:
|
||||
echo "threw exception"
|
||||
Loading…
Add table
Add a link
Reference in a new issue