From e950dc3c5163f1305deffede93e77209e90ecacb Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 9 Mar 2015 13:15:06 +0000 Subject: Do not terminate expressions with ";". Ruby is not Perl, much as I sometimes wish it were. --- t/test-custodian-parser.rb | 16 ++++++++-------- t/test-custodian-util-ping.rb | 4 ++-- 2 files changed, 10 insertions(+), 10 deletions(-) (limited to 't') diff --git a/t/test-custodian-parser.rb b/t/test-custodian-parser.rb index bd5205b..49416b3 100755 --- a/t/test-custodian-parser.rb +++ b/t/test-custodian-parser.rb @@ -82,7 +82,7 @@ class TestCustodianParser < Test::Unit::TestCase # 1.c. Adding a test will return an array of test-objects. - result = parser.parse_line( "smtp.bytemark.co.uk must run smtp on 25 otherwise 'failure'." ); + result = parser.parse_line( "smtp.bytemark.co.uk must run smtp on 25 otherwise 'failure'." ) assert( !result.nil? ) assert( result.kind_of? Array ) assert( result.size == 1 ) @@ -99,9 +99,9 @@ class TestCustodianParser < Test::Unit::TestCase # 2.b. Adding a test will return an array of test-objects. tmp = [] - tmp.push( "smtp.bytemark.co.uk must run ssh on 22 otherwise 'oops'." ); + tmp.push( "smtp.bytemark.co.uk must run ssh on 22 otherwise 'oops'." ) ret = parser.parse_lines( tmp ) - assert( ret.kind_of? Array ); + assert( ret.kind_of? Array ) assert( ret.size == 1 ) # @@ -121,7 +121,7 @@ smtp.bytemark.co.uk must run smtp on 25. google.com must run ping otherwise 'internet broken?'. EOF ret = parser.parse_lines( str ) - assert( ret.kind_of? Array ); + assert( ret.kind_of? Array ) assert( ret.size == 1 ) end @@ -172,8 +172,8 @@ EOF # Input text # text = [] - text.push( "FOO is kvm1.vm.bytemark.co.uk." ); - text.push( "FOO2 is kvm2.vm.bytemark.co.uk." ); + text.push( "FOO is kvm1.vm.bytemark.co.uk." ) + text.push( "FOO2 is kvm2.vm.bytemark.co.uk." ) # # Test the parser with this text @@ -203,8 +203,8 @@ EOF # Input text to parse. # text = [] - text.push( "FOO is kvm1.vm.bytemark.co.uk." ); - text.push( "FOO is kvm2.vm.bytemark.co.uk." ); + text.push( "FOO is kvm1.vm.bytemark.co.uk." ) + text.push( "FOO is kvm2.vm.bytemark.co.uk." ) # # Test the parser with this text diff --git a/t/test-custodian-util-ping.rb b/t/test-custodian-util-ping.rb index 3dd363a..bf8ac43 100755 --- a/t/test-custodian-util-ping.rb +++ b/t/test-custodian-util-ping.rb @@ -64,7 +64,7 @@ class TestPingUtil < Test::Unit::TestCase # def test_lookup_ipv4 - helper = Custodian::Util::Ping.new( "ipv4.steve.org.uk" ); + helper = Custodian::Util::Ping.new( "ipv4.steve.org.uk" ) assert( helper.is_ipv4? ) assert( ! helper.is_ipv6? ) @@ -76,7 +76,7 @@ class TestPingUtil < Test::Unit::TestCase # def test_lookup_ipv6 - helper = Custodian::Util::Ping.new( "ipv6.steve.org.uk" ); + helper = Custodian::Util::Ping.new( "ipv6.steve.org.uk" ) assert( helper.is_ipv6? ) assert( ! helper.is_ipv4? ) end -- cgit v1.2.3