summaryrefslogtreecommitdiff
path: root/tests/lean/Matches.lean
blob: 34f899b1e409c1b1a135cdf38fb24b2db37e949d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
-- THIS FILE WAS AUTOMATICALLY GENERATED BY AENEAS
-- [matches]
import Base
open Primitives

namespace matches

/- [matches::match_u32]:
   Source: 'tests/src/matches.rs', lines 4:0-4:27 -/
def match_u32 (x : U32) : Result U32 :=
  match x with
  | 0u32 => Result.ok 0u32
  | 1u32 => Result.ok 1u32
  | _ => Result.ok 2u32

end matches