Skip to content

Commit 980bbf2

Browse files
Verify simple case of on multi value
1 parent 6b3b4d6 commit 980bbf2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/Base_Tests/src/Semantic/Multi_Value_Convert_Spec.enso

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ add_specs suite_builder =
5757
Test.expect_panic Type_Error <| ac:U
5858
ac:V . v . should_equal 3.14
5959

60+
group_builder.specify "case of first" <|
61+
abc = 3.14 : A&B&C
62+
c1 = case abc of
63+
a:A -> a.a
64+
b:B -> b.b
65+
c:C -> c.c
66+
_ -> "what?"
67+
c1 . should_equal "a"
68+
6069
main filter=Nothing =
6170
suite = Test.build suite_builder->
6271
add_specs suite_builder

0 commit comments

Comments
 (0)