Sha256: 5b54e4827181815081d29280baa904b57bad72ae66325cfde5c370d9392713f8

Contents?: true

Size: 1.71 KB

Versions: 1

Compression:

Stored size: 1.71 KB

Contents

<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
  <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 82</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_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>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dsktool-0.4.1 doc/classes/TestDOSDisks.src/M000028.html