fixed tstrimpl (#20452)

This commit is contained in:
Andreas Rumpf 2022-09-29 09:41:00 +02:00 • committed by GitHub
commit 77a65d3c33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,5 +1,7 @@
import std/private/strimpl
import std/assertions
doAssert find(cstring"Hello Nim", cstring"Nim") == 6
doAssert find(cstring"Hello Nim", cstring"N") == 6
doAssert find(cstring"Hello Nim", cstring"I") == -1