test/t/vformat.rb: fix encoding error; should have been UTF-8

This commit is contained in:
Yukihiro "Matz" Matsumoto
2024-11-11 23:52:58 +09:00
parent 5387b74be7
commit 13acf12df5
+1 -1
View File
@@ -21,7 +21,7 @@ assert('mrb_vformat') do
assert_match '#<Class:#<Class:#<Hash:0x*>>>', vf.v('%t', sclass({}))
assert_equal 'string and length', vf.l('string %l length', 'andante', 3)
assert_equal '`n`: sym', vf.n('`n`: %n', :sym)
assert_equal '%Cʸ»úÎó¯÷%', vf.s('%s', '%Cʸ»úÎó¯÷%')
assert_equal '%C文字列%', vf.s('%s', '%C文字列%')
assert_equal '`C`: Kernel module', vf.C('`C`: %C module', Kernel)
assert_equal '`C`: NilClass', vf.C('`C`: %C', nil.class)
assert_match '#<Class:#<String:0x*>>', vf.C('%C', sclass(""))