Skip to content

Commit 8ea5350

Browse files
committed
style(standard): manual corrections
1 parent 259b7a6 commit 8ea5350

9 files changed

+10
-10
lines changed

lib/sqlite3/resultset.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,15 @@ def next
121121
# Required by the Enumerable mixin. Provides an internal iterator over the
122122
# rows of the result set.
123123
def each
124-
while node = self.next
124+
while (node = self.next)
125125
yield node
126126
end
127127
end
128128

129129
# Provides an internal iterator over the rows of the result set where
130130
# each row is yielded as a hash.
131131
def each_hash
132-
while node = next_hash
132+
while (node = next_hash)
133133
yield node
134134
end
135135
end

test/test_integration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require "helper"
22

3-
class TC_Database_Integration < SQLite3::TestCase
3+
class IntegrationTestCase < SQLite3::TestCase
44
def setup
55
@db = SQLite3::Database.new(":memory:")
66
@db.transaction do

test/test_integration_aggregate.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require "helper"
22

3-
class TC_Integration_Aggregate < SQLite3::TestCase
3+
class IntegrationAggregateTestCase < SQLite3::TestCase
44
def setup
55
@db = SQLite3::Database.new(":memory:")
66
@db.transaction do

test/test_integration_open_close.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require "helper"
22

3-
class TC_OpenClose < SQLite3::TestCase
3+
class IntegrationOpenCloseTestCase < SQLite3::TestCase
44
def test_create_close
55
db = SQLite3::Database.new("test-create.db")
66
assert File.exist?("test-create.db")

test/test_integration_pending.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require "benchmark"
44

5-
class TC_Integration_Pending < SQLite3::TestCase
5+
class IntegrationPendingTestCase < SQLite3::TestCase
66
def setup
77
@db = SQLite3::Database.new("test.db")
88
@db.transaction do

test/test_integration_resultset.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require "helper"
22

3-
class TC_ResultSet < SQLite3::TestCase
3+
class IntegrationResultSetTestCase < SQLite3::TestCase
44
def setup
55
@db = SQLite3::Database.new(":memory:")
66
@db.transaction do

test/test_integration_statement.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require "helper"
22

3-
class TC_Statement < SQLite3::TestCase
3+
class IntegrationStatementTestCase < SQLite3::TestCase
44
def setup
55
@db = SQLite3::Database.new(":memory:")
66
@db.transaction do

test/test_result_set.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ def test_next_hash
3535

3636
rs = @db.prepare("select * from foo").execute
3737
rows = []
38-
while row = rs.next_hash
38+
while (row = rs.next_hash)
3939
rows << row
4040
end
4141
rows.each do |hash|

test/test_statement.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ def test_clear_bindings!
284284
# the clear_bindings! method and assert that nil is returned
285285
stmt.clear_bindings!
286286

287-
while x = stmt.step
287+
while (x = stmt.step)
288288
assert_equal [nil, nil], x
289289
end
290290

0 commit comments

Comments
 (0)