Skip to content

Commit

Permalink
Verify simple case of on multi value
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Dec 11, 2024
1 parent 6b3b4d6 commit 980bbf2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/Base_Tests/src/Semantic/Multi_Value_Convert_Spec.enso
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,15 @@ add_specs suite_builder =
Test.expect_panic Type_Error <| ac:U
ac:V . v . should_equal 3.14

group_builder.specify "case of first" <|
abc = 3.14 : A&B&C
c1 = case abc of
a:A -> a.a
b:B -> b.b
c:C -> c.c
_ -> "what?"
c1 . should_equal "a"

main filter=Nothing =
suite = Test.build suite_builder->
add_specs suite_builder
Expand Down

0 comments on commit 980bbf2

Please # to comment.