hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

fail+test.ha (243B)


      1 // SPDX-License-Identifier: MPL-2.0
      2 // (c) Hare authors <https://harelang.org>
      3 
      4 use os;
      5 
      6 @test fn _abort() void = {
      7 	expectabort();
      8 	abort("Intentional failure");
      9 };
     10 
     11 @test fn exit() void = {
     12 	expectabort();
     13 	os::exit(os::status::FAILURE);
     14 };