Sha256: 431d93fda9479588c36e3e552b87e2e647bd4e90f8904e60cf84e8d418d87bbe
Contents?: true
Size: 1.59 KB
Versions: 1
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/backup/tc_dos_disks.rb, line 20</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">"short file should throw an error"</span>) {<span class="ruby-identifier">dsk</span>=<span class="ruby-constant">DSK</span>.<span class="ruby-identifier">new</span>(<span class="ruby-value str">"0"</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">"non existant file should throw an error"</span>) {<span class="ruby-identifier">dsk</span>=<span class="ruby-constant">DSK</span>.<span class="ruby-identifier">read</span>(<span class="ruby-value str">"NonExistantFileName.not"</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/M000015.html |