Sha256: 0ab5c92a4469d429ae03f2edb31d3689da0944312a225fd9d2c6fb7f6061e9b3

Contents?: true

Size: 1.59 KB

Versions: 7

Compression:

Stored size: 1.59 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_bad_dsks (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 9</span>
        <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">test_bad_dsks</span>
                <span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">RuntimeError</span>,<span class="ruby-value str">&quot;short file should throw an error&quot;</span>) {<span class="ruby-identifier">dsk</span>=<span class="ruby-constant">DSK</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">&quot;0&quot;</span><span class="ruby-operator">*</span><span class="ruby-value">100</span>)}
                <span class="ruby-identifier">assert_raise</span>(<span class="ruby-constant">Errno</span><span class="ruby-operator">::</span><span class="ruby-constant">ENOENT</span>,<span class="ruby-value str">&quot;non existant file should throw an error&quot;</span>) {<span class="ruby-identifier">dsk</span>=<span class="ruby-constant">DSK</span>.<span class="ruby-identifier">read</span>(<span class="ruby-value str">&quot;NonExistantFileName.not&quot;</span>)}
        <span class="ruby-keyword kw">end</span></pre>
</body>
</html>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dsktool-0.1.2 doc/classes/TestDOSDisks.src/M000001.html
dsktool-0.1.3 doc/classes/TestDOSDisks.src/M000001.html
dsktool-0.1.4 doc/classes/TestDOSDisks.src/M000001.html
dsktool-0.1.5 doc/classes/TestDOSDisks.src/M000001.html
dsktool-0.1.6 doc/classes/TestDOSDisks.src/M000001.html
dsktool-0.2.1 doc/classes/TestDOSDisks.src/M000001.html
dsktool-0.5.1 doc/classes/TestDOSDisks.src/M000001.html