test: deriving DecidableEq for enum types
Forgot to add test.
This commit is contained in:
parent
5154f462f8
commit
7607a24469
1 changed files with 29 additions and 0 deletions
29
tests/lean/run/enumDecEq.lean
Normal file
29
tests/lean/run/enumDecEq.lean
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
inductive Foo1 where
|
||||
| a1
|
||||
deriving DecidableEq
|
||||
|
||||
#print Foo1.ofNat
|
||||
|
||||
inductive Foo2 where
|
||||
| a1 | a2
|
||||
deriving DecidableEq
|
||||
|
||||
#print Foo2.ofNat
|
||||
|
||||
inductive Foo3 where
|
||||
| a1 | a2 | a3
|
||||
deriving DecidableEq
|
||||
|
||||
#print Foo3.ofNat
|
||||
|
||||
inductive Foo4 where
|
||||
| a1 | a2 | a3 | a4
|
||||
deriving DecidableEq
|
||||
|
||||
#print Foo4.ofNat
|
||||
|
||||
inductive Foo5 where
|
||||
| a1 | a2 | a3 | a4 | a5
|
||||
deriving DecidableEq
|
||||
|
||||
#print Foo5.ofNat
|
||||
Loading…
Add table
Reference in a new issue