Bugs: Browse | Submit New | Admin

[#29315] test/test_bytes.rb not in test framework, so tests do not run

Date:
2011-07-12 18:59
Priority:
3
Submitted By:
Jeff Woolsey (jlwruby)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
test/test_bytes.rb not in test framework, so tests do not run

Detailed description
bash-3.00$ ruby test_bytes.rb 
Loaded suite test_bytes
Started

Finished in 0.003285 seconds.

0 tests, 0 assertions, 0 failures, 0 errors
bash-3.00$ 

So I put 

class TestBytes < Test::Unit::TestCase

in the appropriate place (after the include) and ran the test, and two failed:

bash-3.00$ ruby test_bytes.rb 
Loaded suite test_bytes
Started
FF
Finished in 0.02716 seconds.

  1) Failure:
test_bits(TestBytes) [test_bytes.rb:15]:
<"011010101010"> expected but was
<"11010101010">.

  2) Failure:
test_bytes(TestBytes) [test_bytes.rb:40]:
<2938338195> expected but was
<2474320815>.

2 tests, 8 assertions, 2 failures, 0 errors
bash-3.00$ 

Add A Comment: Notepad

Please login


Followup

No Followups Have Been Posted

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

No Changes Have Been Made to This Item