2023-11-10 22:19:06 +03:00
|
|
|
---
|
|
|
|
source: tests/golden_tests.rs
|
2024-05-15 01:25:46 +03:00
|
|
|
input_file: tests/golden_tests/encode_pattern_match/common.bend
|
2023-11-10 22:19:06 +03:00
|
|
|
---
|
2024-05-18 15:01:20 +03:00
|
|
|
Scott
|
2024-05-10 22:42:32 +03:00
|
|
|
(Box/Filled) = λa λb λ* (b a)
|
2024-02-07 18:19:07 +03:00
|
|
|
|
2024-05-10 22:42:32 +03:00
|
|
|
(Box/Empty) = λ* λb b
|
2024-02-07 18:19:07 +03:00
|
|
|
|
2024-05-10 22:42:32 +03:00
|
|
|
(Option/Some) = λa λb λ* (b a)
|
2024-02-07 18:19:07 +03:00
|
|
|
|
2024-05-10 22:42:32 +03:00
|
|
|
(Option/None) = λ* λb b
|
2024-02-07 18:19:07 +03:00
|
|
|
|
2024-05-10 22:42:32 +03:00
|
|
|
(Result_/Ok) = λa λb λ* (b a)
|
2024-02-07 18:19:07 +03:00
|
|
|
|
2024-05-10 22:42:32 +03:00
|
|
|
(Result_/Err) = λa λ* λc (c a)
|
2024-02-07 18:19:07 +03:00
|
|
|
|
2024-05-10 22:42:32 +03:00
|
|
|
(List_/Cons) = λa λb λc λ* (c a b)
|
2024-02-07 18:19:07 +03:00
|
|
|
|
2024-05-10 22:42:32 +03:00
|
|
|
(List_/Nil) = λ* λb b
|
2024-02-07 18:19:07 +03:00
|
|
|
|
2024-05-10 22:42:32 +03:00
|
|
|
(Bool/True) = λa λ* a
|
2024-03-19 20:37:30 +03:00
|
|
|
|
2024-05-10 22:42:32 +03:00
|
|
|
(Bool/False) = λ* λb b
|
2024-03-19 20:37:30 +03:00
|
|
|
|
2024-05-10 22:42:32 +03:00
|
|
|
(Light/Red) = λa λ* λ* a
|
2024-03-19 20:37:30 +03:00
|
|
|
|
2024-05-10 22:42:32 +03:00
|
|
|
(Light/Yellow) = λ* λb λ* b
|
2024-03-19 20:37:30 +03:00
|
|
|
|
2024-05-10 22:42:32 +03:00
|
|
|
(Light/Green) = λ* λ* λc c
|
2024-03-19 20:37:30 +03:00
|
|
|
|
2024-05-10 22:42:32 +03:00
|
|
|
(Direction/North) = λa λ* λ* λ* a
|
2024-03-19 20:37:30 +03:00
|
|
|
|
2024-05-10 22:42:32 +03:00
|
|
|
(Direction/South) = λ* λb λ* λ* b
|
2024-03-19 20:37:30 +03:00
|
|
|
|
2024-05-10 22:42:32 +03:00
|
|
|
(Direction/East) = λ* λ* λc λ* c
|
2024-03-19 20:37:30 +03:00
|
|
|
|
2024-05-10 22:42:32 +03:00
|
|
|
(Direction/West) = λ* λ* λ* λd d
|
2024-05-18 15:01:20 +03:00
|
|
|
|
|
|
|
NumScott
|
2024-05-27 21:09:23 +03:00
|
|
|
(Box/Filled) = λa λb (b Box/Filled/tag a)
|
2024-05-18 15:01:20 +03:00
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(Box/Empty) = λa (a Box/Empty/tag)
|
2024-05-18 15:01:20 +03:00
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(Option/Some) = λa λb (b Option/Some/tag a)
|
2024-05-18 15:01:20 +03:00
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(Option/None) = λa (a Option/None/tag)
|
2024-05-18 15:01:20 +03:00
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(Result_/Ok) = λa λb (b Result_/Ok/tag a)
|
2024-05-18 15:01:20 +03:00
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(Result_/Err) = λa λb (b Result_/Err/tag a)
|
2024-05-18 15:01:20 +03:00
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(List_/Cons) = λa λb λc (c List_/Cons/tag a b)
|
2024-05-18 15:01:20 +03:00
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(List_/Nil) = λa (a List_/Nil/tag)
|
2024-05-18 15:01:20 +03:00
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(Bool/True) = λa (a Bool/True/tag)
|
2024-05-18 15:01:20 +03:00
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(Bool/False) = λa (a Bool/False/tag)
|
2024-05-18 15:01:20 +03:00
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(Light/Red) = λa (a Light/Red/tag)
|
2024-05-18 15:01:20 +03:00
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(Light/Yellow) = λa (a Light/Yellow/tag)
|
2024-05-18 15:01:20 +03:00
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(Light/Green) = λa (a Light/Green/tag)
|
2024-05-18 15:01:20 +03:00
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(Direction/North) = λa (a Direction/North/tag)
|
2024-05-18 15:01:20 +03:00
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(Direction/South) = λa (a Direction/South/tag)
|
2024-05-18 15:01:20 +03:00
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(Direction/East) = λa (a Direction/East/tag)
|
2024-05-18 15:01:20 +03:00
|
|
|
|
2024-05-27 21:09:23 +03:00
|
|
|
(Direction/West) = λa (a Direction/West/tag)
|
|
|
|
|
|
|
|
(Box/Filled/tag) = 0
|
|
|
|
|
|
|
|
(Box/Empty/tag) = 1
|
|
|
|
|
|
|
|
(Option/Some/tag) = 0
|
|
|
|
|
|
|
|
(Option/None/tag) = 1
|
|
|
|
|
|
|
|
(Result_/Ok/tag) = 0
|
|
|
|
|
|
|
|
(Result_/Err/tag) = 1
|
|
|
|
|
|
|
|
(List_/Cons/tag) = 0
|
|
|
|
|
|
|
|
(List_/Nil/tag) = 1
|
|
|
|
|
|
|
|
(Bool/True/tag) = 0
|
|
|
|
|
|
|
|
(Bool/False/tag) = 1
|
|
|
|
|
|
|
|
(Light/Red/tag) = 0
|
|
|
|
|
|
|
|
(Light/Yellow/tag) = 1
|
|
|
|
|
|
|
|
(Light/Green/tag) = 2
|
|
|
|
|
|
|
|
(Direction/North/tag) = 0
|
|
|
|
|
|
|
|
(Direction/South/tag) = 1
|
|
|
|
|
|
|
|
(Direction/East/tag) = 2
|
|
|
|
|
|
|
|
(Direction/West/tag) = 3
|