doc/classes/TestDOSDisks.src/M000018.html in dsktool-0.2.1 vs doc/classes/TestDOSDisks.src/M000018.html in dsktool-0.4.1

- old
+ new

@@ -3,23 +3,18 @@ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> - <title>test_open_url_to_compressed_dsk (TestDOSDisks)</title> + <title>test_dump_sector (TestDOSDisks)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> - <pre><span class="ruby-comment cmt"># File test/tc_dos_disks.rb, line 39</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_open_url_to_compressed_dsk</span> - <span class="ruby-identifier">dskname</span>=<span class="ruby-value str">&quot;http://www.apple2.org.za/mirrors/ftp.apple.asimov.net/images/games/adventure/vaults_of_zurich.dsk.gz&quot;</span> + <pre><span class="ruby-comment cmt"># File test/backup/tc_dos_disks.rb, line 63</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_dump_sector</span> + <span class="ruby-identifier">dskname</span>=<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-keyword kw">__FILE__</span>)<span class="ruby-operator">+</span><span class="ruby-value str">&quot;//AAL_1.DSK&quot;</span> <span class="ruby-identifier">dsk</span>=<span class="ruby-constant">DSK</span>.<span class="ruby-identifier">read</span>(<span class="ruby-identifier">dskname</span>) - <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">dsk</span>.<span class="ruby-identifier">is_dos33?</span>,<span class="ruby-node">&quot;#{dskname} should be DOS 3.3 format&quot;</span>) - <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">dsk</span>.<span class="ruby-identifier">files</span>.<span class="ruby-identifier">length</span><span class="ruby-operator">&gt;</span><span class="ruby-value">0</span>,<span class="ruby-node">&quot;#{dskname} should have at least one file&quot;</span>) - - <span class="ruby-identifier">hello_file</span>=<span class="ruby-identifier">dsk</span>.<span class="ruby-identifier">files</span>[<span class="ruby-value str">&quot;HELLO&quot;</span>] - <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">hello_file!</span>=<span class="ruby-keyword kw">nil</span>,<span class="ruby-node">&quot;#{dskname} should have a file called HELLO&quot;</span>) - <span class="ruby-identifier">assert</span>(<span class="ruby-identifier">hello_file</span>.<span class="ruby-identifier">instance_of?</span>(<span class="ruby-constant">AppleSoftFile</span>),<span class="ruby-value str">&quot;HELLO should be an AppleSoft file&quot;</span>) + <span class="ruby-identifier">assert_equal</span>(<span class="ruby-identifier">dsk</span>.<span class="ruby-identifier">dump_sector</span>(<span class="ruby-value">0</span>,<span class="ruby-value">0</span>).<span class="ruby-identifier">length</span>,<span class="ruby-identifier">dsk</span>.<span class="ruby-identifier">dump_sector</span>(<span class="ruby-value">0</span>,<span class="ruby-value">2</span>).<span class="ruby-identifier">length</span>,<span class="ruby-value str">&quot;sector dumps should be consistent length&quot;</span>) <span class="ruby-keyword kw">end</span></pre> </body> </html> \ No newline at end of file