public
Rubygem
Description: Ruby osx/plist extension for reading/writing property lists
Clone URL: git://github.com/kballard/osx-plist.git
Search Repo:
Fix order of a couple tests and a memory leak of the error string
kballard (author)
Fri Aug 12 12:29:00 -0700 2005
commit  3f0fb2bbbbb3a251d3c7f542865f6b8fa084a796
tree    9ca9bb69f5aa2685dff2195104acc0631a997c5b
parent  d3a09a4284dda52e8737e1a53b99b4a32a6881e2
...
116
117
118
 
119
120
121
...
116
117
118
119
120
121
122
0
@@ -116,6 +116,7 @@
0
   CFRelease(readStream);
0
   if (error) {
0
     raiseError(error);
0
+ CFRelease(error);
0
     return Qnil;
0
   }
0
   VALUE obj = convertPropertyListRef(plist);
...
5
6
7
8
 
9
10
11
12
 
 
 
13
14
15
...
5
6
7
 
8
9
 
 
 
10
11
12
13
14
15
0
@@ -5,11 +5,11 @@
0
 class TestPlist < Test::Unit::TestCase
0
   def test_string
0
     plist = PropertyList.load("{foo = bar; }")
0
- assert_equal(plist, { "foo" => "bar" } )
0
+ assert_equal( { "foo" => "bar" }, plist )
0
 
0
- plist, format = PropertyList.load("{foo = bar; }", true);
0
- assert_equal({ "foo" => "bar" }, plist)
0
- assert_equal(format, :openstep)
0
+ plist, format = PropertyList.load("{foo = bar; }", true)
0
+ assert_equal( { "foo" => "bar" }, plist )
0
+ assert_equal( :openstep, format )
0
   end
0
 
0
   def setup_hash

Comments

    No one has commented yet.