Skip to content

Commit

Permalink
toDisplayString selects first value
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Mar 7, 2025
1 parent e7f8c3c commit 7b7fa5d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ public void avoidDoubleWrappingOfEnsoMultiValue() {
EnsoMultiValue.NewNode.getUncached()
.newValue(
new Type[] {builtins.text(), builtins.number().getInteger()}, 2, 0, hi, 42);
assertEquals("Text & Integer", m1.toDisplayString(true));
assertEquals("'Hi'", m1.toDisplayString(true));

var res = convert.call(m1);
assertTrue("Got multivalue again", res instanceof EnsoMultiValue);
var emv = (EnsoMultiValue) res;

assertEquals("Integer & Text", emv.toDisplayString(true));
assertEquals("42", emv.toDisplayString(true));
return null;
});
}
Expand Down

0 comments on commit 7b7fa5d

Please sign in to comment.