add test case
This commit is contained in:
parent
e9addb3ab2
commit
72a65c43a7
1 changed files with 16 additions and 0 deletions
16
tests/stdlib/t8925.nim
Normal file
16
tests/stdlib/t8925.nim
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
discard """
|
||||
file: "strscans.nim"
|
||||
errormsg: "type mismatch between pattern '$i' (position: 1) and HourRange var 'hour'"
|
||||
"""
|
||||
|
||||
import strscans
|
||||
|
||||
type
|
||||
HourRange = range[0..23]
|
||||
|
||||
var
|
||||
hour: HourRange
|
||||
timeStr: string
|
||||
|
||||
if scanf(timeStr, "$i", hour):
|
||||
discard
|
||||
Loading…
Add table
Add a link
Reference in a new issue