MCPcopy Index your code
hub / github.com/encounter/objdiff / decode_sjis_pooled_strings

Function decode_sjis_pooled_strings

objdiff-core/tests/arch_ppc.rs:128–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

126#[test]
127#[cfg(feature = "ppc")]
128fn decode_sjis_pooled_strings() {
129 // Test multiple pooled Shift JIS strings separated by a single null byte between entries. (MWCC)
130 let diff_config = diff::DiffObjConfig { combine_data_sections: true, ..Default::default() };
131 let obj = obj::read::parse(
132 include_object!("data/ppc/m_Do_hostIO.o"),
133 &diff_config,
134 diff::DiffSide::Base,
135 )
136 .unwrap();
137 common::assert_literal_value(
138 &obj,
139 &diff_config,
140 "createChild__16mDoHIO_subRoot_cFPCcP13JORReflexible",
141 15,
142 "Shift JIS",
143 "危険:既に登録されているホストIOをふたたび登録しようとしています<%s>\n",
144 );
145 common::assert_literal_value(
146 &obj,
147 &diff_config,
148 "createChild__16mDoHIO_subRoot_cFPCcP13JORReflexible",
149 42,
150 "Shift JIS",
151 "ホストIOの空きエントリがありません。登録できませんでした。\n",
152 );
153}
154
155#[test]
156#[cfg(feature = "ppc")]

Callers

nothing calls this directly

Calls 2

parseFunction · 0.85
assert_literal_valueFunction · 0.85

Tested by

no test coverage detected