From cea60f202affaa06f6bc51baa26b1a550ce5f3e0 Mon Sep 17 00:00:00 2001 From: Torsten Ruger Date: Sun, 15 Nov 2015 00:35:43 +0200 Subject: [PATCH] small label changes --- lib/parfait/method.rb | 2 +- lib/parfait/word.rb | 2 +- lib/register/instructions/label.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/parfait/method.rb b/lib/parfait/method.rb index e0583af8..dac6bc1d 100644 --- a/lib/parfait/method.rb +++ b/lib/parfait/method.rb @@ -71,7 +71,7 @@ module Parfait end def sof_reference_name - self.name + "Method: " + self.name.to_s end def inspect diff --git a/lib/parfait/word.rb b/lib/parfait/word.rb index a9f1a276..4b0a09e5 100644 --- a/lib/parfait/word.rb +++ b/lib/parfait/word.rb @@ -158,7 +158,7 @@ module Parfait private def check_length - raise "Length out of bounds #{self.char_length}" if self.char_length > 108 + raise "Length out of bounds #{self.char_length}" if self.char_length > 1000 end end end diff --git a/lib/register/instructions/label.rb b/lib/register/instructions/label.rb index a76a810b..e232d1a5 100644 --- a/lib/register/instructions/label.rb +++ b/lib/register/instructions/label.rb @@ -18,7 +18,7 @@ module Register "Label: #{@name} (#{self.next.class})" end def sof_reference_name - "Label: #{@name}" + @name end # a method start has a label of the form Class.method , test for that