tamer: sym::prefill::test::global_sanity_check: Note duplicate strings

I want to make it clear in the assertion that the problem could be caused by
duplicate strings.  We do not sort by string, because in part we may in the
future want to group certain symbols together in some arbitrary way so we
can compare ranges (using the markers).

If that doesn't end up happening, it may be better to just sort by string
to obviate the problem.
main
Mike Gerwitz 2021-09-24 16:24:02 -04:00
parent db8a098452
commit 96b16c6de9
1 changed files with 2 additions and 1 deletions

View File

@ -269,7 +269,8 @@ mod test {
assert!(
new.as_usize() > st::END_STATIC.as_usize(),
"a new global symbol allocation was not > END_STATIC, \
indicating that prefill is not working!"
indicating that prefill is either not working or that \
the prefill contains duplicate strings!"
);
// Further sanity check to make sure indexes align as expected,