Skip to content

Commit

Permalink
Adding sample failure to verify it is detected on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JaroslavTulach committed Jul 29, 2024
1 parent 7566561 commit 8875dc1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/Base_Tests/src/Runtime/Managed_Resource_Spec.enso
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import project.Runtime.GC_Example

from Standard.Test import all

polyglot java import java.lang.Short

add_specs suite_builder = suite_builder.group "Managed_Resource" group_builder->
group_builder.specify "should call the destructor even if the action fails" <|
Expand Down Expand Up @@ -68,6 +69,9 @@ add_specs suite_builder = suite_builder.group "Managed_Resource" group_builder->
if messages.last != "OK" then
Test.fail (messages.join '\n')

group_builder.specify "Sample failure on Native" <|
Short.valueOf "32" . should_equal 32

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

0 comments on commit 8875dc1

Please sign in to comment.