提交 86d39249 编写于 作者: P Pieter Noordhuis

ensure the value is swapped in before testing its encoding

上级 cbf7e107
...@@ -33,9 +33,14 @@ proc assert_error {pattern code} { ...@@ -33,9 +33,14 @@ proc assert_error {pattern code} {
} }
proc assert_encoding {enc key} { proc assert_encoding {enc key} {
# swapped out value doesn't have encoding, so swap in first # Swapped out values don't have an encoding, so make sure that
r debug swapin $key # the value is swapped in before checking the encoding.
assert_match "* encoding:$enc *" [r debug object $key] set dbg [r debug object $key]
while {[string match "* swapped:*" $dbg]} {
[r debug swapin $key]
set dbg [r debug object $key]
}
assert_match "* encoding:$enc *" $dbg
} }
proc assert_type {type key} { proc assert_type {type key} {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册