diff options
Diffstat (limited to 'spec/inputs')
| -rw-r--r-- | spec/inputs/test/class_spec.yue | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/inputs/test/class_spec.yue b/spec/inputs/test/class_spec.yue index df8bc96..4f7af7c 100644 --- a/spec/inputs/test/class_spec.yue +++ b/spec/inputs/test/class_spec.yue | |||
| @@ -293,3 +293,16 @@ describe "class", -> | |||
| 293 | assert.same 1 + 100 + 12, Sub!\value! | 293 | assert.same 1 + 100 + 12, Sub!\value! |
| 294 | assert.same 6, OtherSub!\value! | 294 | assert.same 6, OtherSub!\value! |
| 295 | 295 | ||
| 296 | it "should copy metamethod from super", -> | ||
| 297 | class A | ||
| 298 | val: 1 | ||
| 299 | <tostring>: => "Object #{ @val }" | ||
| 300 | |||
| 301 | class B extends A | ||
| 302 | val: 2 | ||
| 303 | |||
| 304 | a, b = A!, B! | ||
| 305 | |||
| 306 | assert.same "Object 1", tostring a | ||
| 307 | assert.same "Object 2", tostring b | ||
| 308 | |||
