Skip to content

Commit 71c9290

Browse files
committed
add a test
1 parent acfb79f commit 71c9290

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

test/Base_Tests/src/Semantic/Multi_Value_As_Type_Refinement_Spec.enso

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -258,6 +258,14 @@ add_specs suite_builder =
258258
ab2.a_method . should_equal "A method"
259259
ab2.b_method . should_equal "B method"
260260

261+
group_builder.specify "calling both throw_on_warning and catch should not lose the refinements" <|
262+
ab = make_a_and_b
263+
r = ab.throw_on_warning Illegal_State . catch Any _->"catched"
264+
r.is_a A . should_be_true
265+
r.is_a B . should_be_true
266+
r.a_method . should_equal "A method"
267+
r.b_method . should_equal "B method"
268+
261269
main filter=Nothing =
262270
suite = Test.build suite_builder->
263271
add_specs suite_builder

0 commit comments

Comments
 (0)