From 42c404802dd3f155c7c35cf61c4d73e003ca05c9 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Sat, 7 Nov 2015 00:13:57 +0200 Subject: [PATCH] more class function testing --- test/compiler/fragments/test_all.rb | 1 + test/compiler/fragments/test_functions.rb | 34 +++++++++++++++++++++-- test/compiler/fragments/test_word.rb | 23 +++++++++++++++ 3 files changed, 56 insertions(+), 2 deletions(-) create mode 100644 test/compiler/fragments/test_word.rb diff --git a/test/compiler/fragments/test_all.rb b/test/compiler/fragments/test_all.rb index ff94a47e..dc71ced6 100644 --- a/test/compiler/fragments/test_all.rb +++ b/test/compiler/fragments/test_all.rb @@ -8,3 +8,4 @@ require_relative "test_putint" require_relative "test_recursive_fibo" require_relative "test_return" require_relative "test_while_fibo" +require_relative "test_word" diff --git a/test/compiler/fragments/test_functions.rb b/test/compiler/fragments/test_functions.rb index e9e2b69e..8d144323 100644 --- a/test/compiler/fragments/test_functions.rb +++ b/test/compiler/fragments/test_functions.rb @@ -29,7 +29,37 @@ class Object end end HERE - @length = 486 - check_return 80 + @length = 486 + check_return 80 + end + + def test_class_method + @string_input = <