mirror of
https://github.com/janet-lang/janet
synced 2025-10-21 02:37:49 +00:00
Add test case for string/format %s of buffer
This commit is contained in:
@@ -136,5 +136,8 @@
|
|||||||
"keyword slice")
|
"keyword slice")
|
||||||
(assert (= 'symbol (symbol/slice "some_symbol_slice" 5 11)) "symbol slice")
|
(assert (= 'symbol (symbol/slice "some_symbol_slice" 5 11)) "symbol slice")
|
||||||
|
|
||||||
|
# Check string formatting, #1600
|
||||||
|
(assert (= "" (string/format "%.99s" @"")) "string/format %s buffer")
|
||||||
|
|
||||||
(end-suite)
|
(end-suite)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user