summaryrefslogtreecommitdiffstats
path: root/test/tc_integration.rb
diff options
context:
space:
mode:
authorJamis Buck <jamis@37signals.com>2007-01-13 18:25:29 +0000
committerJamis Buck <jamis@37signals.com>2007-01-13 18:25:29 +0000
commitd606f9ceac86759c806801a51914f4d88ad88156 (patch)
tree4a329e3d84fa315f67c896fa2794e8b4559822de /test/tc_integration.rb
parent1e0e10c1ce8011c523e4d09dd64bde763c5a46e8 (diff)
downloadthird_party-sqlite3-ruby-d606f9ceac86759c806801a51914f4d88ad88156.tar.gz
third_party-sqlite3-ruby-d606f9ceac86759c806801a51914f4d88ad88156.tar.xz
third_party-sqlite3-ruby-d606f9ceac86759c806801a51914f4d88ad88156.zip
db.transaction should properly catch an exception (closes #3981)
Diffstat (limited to 'test/tc_integration.rb')
-rw-r--r--test/tc_integration.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/tc_integration.rb b/test/tc_integration.rb
index 864fe85..74b18c8 100644
--- a/test/tc_integration.rb
+++ b/test/tc_integration.rb
@@ -7,9 +7,8 @@ require 'sqlite3/database'
class String
def to_utf16(terminate=false)
- result = ""
- self.split(//).map { |c| c[0] }.pack("s*")
- result + (terminate ? "\0\0" : "")
+ self.split(//).map { |c| c[0] }.pack("v*") +
+ (terminate ? "\0\0" : "")
end
def from_utf16