From 8b8754a12df481e998ea3a66fbc3ce993f21f763 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Sat, 17 Sep 2022 02:11:12 -0400 Subject: [PATCH] Enum now passes its test --- parser/enum_test.go | 32 +++++++++++++++++++++----------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/parser/enum_test.go b/parser/enum_test.go index c6c8c75..74c59b7 100644 --- a/parser/enum_test.go +++ b/parser/enum_test.go @@ -8,21 +8,30 @@ func TestEnum (test *testing.T) { --- enum ro AffrontToGod:Int:4 - bird0: - <28394 9328 - 398 9> - - bird1: - <23 932832 + < + 28394 + 9328 398 - 2349> + 9 + > + - bird1: + < + 23 + 932832 + 398 + 2349 + > - bird2: - <1 + < + 1 2 3 - 4> + 4 + > enum ro NamedColor:U32 - - red:<0xFF0000> - - green:<0x00FF00> - - blue:<0x0000FF> + - red:<16711680> + - green:<65280> + - blue:<255> enum ro ThisIsTerrible:Obj: ( .rw x:Int @@ -36,7 +45,8 @@ enum ro ThisIsTerrible:Obj: - down: ( .x:<0> - .y:<1>) + .y:<1> + ) - left: ( .x:<-1>