Skip to content

Commit 1150f9b

Browse files
committed
made the test for lookup null-safety actually succeed
1 parent 109e713 commit 1150f9b

File tree

1 file changed

+28
-2
lines changed

1 file changed

+28
-2
lines changed

code/languages/org.iets3.opensource/tests/test.in.expr.os/models/[email protected]

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,14 @@
4141
<child id="9002563722476995147" name="target" index="1QScD9" />
4242
</concept>
4343
</language>
44+
<language id="92d2ea16-5a42-4fdf-a676-c7604efe3504" name="de.slisson.mps.richtext">
45+
<concept id="2557074442922380897" name="de.slisson.mps.richtext.structure.Text" flags="ng" index="19SGf9">
46+
<child id="2557074442922392302" name="words" index="19SJt6" />
47+
</concept>
48+
<concept id="2557074442922438156" name="de.slisson.mps.richtext.structure.Word" flags="ng" index="19SUe$">
49+
<property id="2557074442922438158" name="escapedValue" index="19SUeA" />
50+
</concept>
51+
</language>
4452
<language id="d441fba0-f46b-43cd-b723-dad7b65da615" name="org.iets3.core.expr.tests">
4553
<concept id="543569365052056273" name="org.iets3.core.expr.tests.structure.EqualsTestOp" flags="ng" index="_fku$" />
4654
<concept id="543569365052056263" name="org.iets3.core.expr.tests.structure.TestCase" flags="ng" index="_fkuM">
@@ -73,7 +81,18 @@
7381
</concept>
7482
<concept id="543569365052765011" name="org.iets3.core.expr.toplevel.structure.EmptyToplevelContent" flags="ng" index="_ixoA" />
7583
</language>
84+
<language id="d4280a54-f6df-4383-aa41-d1b2bffa7eb1" name="com.mbeddr.core.base">
85+
<concept id="8375407818529178006" name="com.mbeddr.core.base.structure.TextBlock" flags="ng" index="OjmMv">
86+
<child id="8375407818529178007" name="text" index="OjmMu" />
87+
</concept>
88+
<concept id="3857533489766146428" name="com.mbeddr.core.base.structure.ElementDocumentation" flags="ng" index="1z9TsT">
89+
<child id="4052432714772608243" name="text" index="1w35rA" />
90+
</concept>
91+
</language>
7692
<language id="ceab5195-25ea-4f22-9b92-103b95ca8c0c" name="jetbrains.mps.lang.core">
93+
<concept id="1133920641626" name="jetbrains.mps.lang.core.structure.BaseConcept" flags="ng" index="2VYdi">
94+
<child id="5169995583184591170" name="smodelAttribute" index="lGtFl" />
95+
</concept>
7796
<concept id="1169194658468" name="jetbrains.mps.lang.core.structure.INamedConcept" flags="ng" index="TrEIO">
7897
<property id="1169194664001" name="name" index="TrG5h" />
7998
</concept>
@@ -541,8 +560,15 @@
541560
</node>
542561
</node>
543562
</node>
544-
<node concept="30bXRB" id="5s1lueTJ6QU" role="_fkuS">
545-
<property role="30bXRw" value="4" />
563+
<node concept="1I1voI" id="48Q4_iT7B4H" role="_fkuS" />
564+
<node concept="1z9TsT" id="48Q4_iT7BfY" role="lGtFl">
565+
<node concept="OjmMv" id="48Q4_iT7BfZ" role="1w35rA">
566+
<node concept="19SGf9" id="48Q4_iT7Bg0" role="OjmMu">
567+
<node concept="19SUe$" id="48Q4_iT7Bg1" role="19SJt6">
568+
<property role="19SUeA" value="lookup by 30 doesn't find a row. In this case, we don't expect an NPE, but rather &#10;that the !.val2 is shortcut-evaluated to return the null from the lookup" />
569+
</node>
570+
</node>
571+
</node>
546572
</node>
547573
</node>
548574
</node>

0 commit comments

Comments
 (0)