You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The utest generation in stdlib/stdlib/utest-generate.mc does not deal with Names that have the same string but a distinct symbol properly. This is because some of the generated code uses nameGetStr for the names in generated code.
This can be fixed by replacing the usage of nameGetStr by something that generates distinct strings for distinct names. This could be done by concatenating sym2hash or by tracking a unique string per symbol in some environment like is done in stdlib/mexpr/pprint.mc.
The utest generation in
stdlib/stdlib/utest-generate.mc
does not deal withName
s that have the same string but a distinct symbol properly. This is because some of the generated code usesnameGetStr
for the names in generated code.This can be fixed by replacing the usage of
nameGetStr
by something that generates distinct strings for distinct names. This could be done by concatenatingsym2hash
or by tracking a unique string per symbol in some environment like is done instdlib/mexpr/pprint.mc
.miking/stdlib/mexpr/pprint.mc
Line 37 in 24505bd
The text was updated successfully, but these errors were encountered: