mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-20 13:50:56 +00:00
* fixes #17768 [backport:1.4]
* tiny
(cherry picked from commit 2deb7011f5)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import unicode
|
||||
import std/unicode
|
||||
|
||||
|
||||
proc asRune(s: static[string]): Rune =
|
||||
@@ -213,3 +213,10 @@ block differentSizes:
|
||||
doAssert swapCase("ⱥbCd") == "ȺBcD"
|
||||
doAssert swapCase("XyꟆaB") == "xYᶎAb"
|
||||
doAssert swapCase("aᵹcᲈd") == "AꝽCꙊD"
|
||||
|
||||
block: # bug #17768
|
||||
let s1 = "abcdef"
|
||||
let s2 = "abcdéf"
|
||||
|
||||
doAssert s1.runeSubstr(0, -1) == "abcde"
|
||||
doAssert s2.runeSubstr(0, -1) == "abcdé"
|
||||
|
||||
Reference in New Issue
Block a user