From caa724d0989958e0d20a19e51c68e4cfb00bb164 Mon Sep 17 00:00:00 2001 From: leaf corcoran Date: Sun, 6 Dec 2015 12:03:19 -0800 Subject: [PATCH] more spec --- spec/class_spec.moon | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/spec/class_spec.moon b/spec/class_spec.moon index e66eefa..394c59b 100644 --- a/spec/class_spec.moon +++ b/spec/class_spec.moon @@ -285,6 +285,13 @@ describe "class", -> super! + 100 } + class OtherSub extends Base + value: if true + => 5 + super! + else + => 2 + super! + assert.same 1 + 100 + 12, Sub!\value! + assert.same 6, OtherSub!\value!