coatl / sequence

Sequence provides a unified api for access to sequential Ruby data types, like Strings, Arrays, Files, IOs, and Enumerations.
sequence.rubyforge.org
Other
14 stars 2 forks source link

test failure #3

Open rdp opened 15 years ago

rdp commented 15 years ago

.E.................................

Finished in 0.186101274 seconds.

1) Error: test_unnamed(GroupAnchorsExhaustive): SyntaxError: (eval):1: empty char-class: /([\A[]|^asdf(df)s)/ empty char-class: /(\A|[z^[]asdf(df)s)/ empty char-class: /(\A|[z^[]asdf(df)s)/ empty char-class: /([\A[]|^asdf(df)s)/ /free_space/rdp/caleb/sequence/test/test_seqrex.rb:99:in eval' /free_space/rdp/caleb/sequence/test/test_seqrex.rb:99:inblock in test_unnamed' /free_space/rdp/caleb/sequence/test/test_seqrex.rb:34:in `test_unnamed'

35 tests, 3843 assertions, 0 failures, 1 errors, 0 pendings, 0 omissions, 0 notifications

rdp commented 15 years ago

that was with 1.9.2dev

coatl commented 15 years ago

This should be fixed now, but I haven't tested on 1.9.2 (I don't have that version set up).

coatl commented 15 years ago

rogerdpack said (elsewhere): for me with 1.9.2 I get one failure

  1) Error:
test_unnamed(GroupAnchorsExhaustive):
SyntaxError: (eval):1: premature end of char-class: /([\A[~]|^asdf(df)s)/
premature end of char-class: /(\A|[z^[~]asdf(df)s)/
premature end of char-class: /(\A|[z^[~]asdf(df)s)/
premature end of char-class: /([\A[~]|^asdf(df)s)/
    /home/rdp/dev/coatl/sequence/test/test_seqrex.rb:99:in `eval'
    /home/rdp/dev/coatl/sequence/test/test_seqrex.rb:99:in `block in test_unnamed'
    /home/rdp/dev/coatl/sequence/test/test_seqrex.rb:34:in `test_unnamed'

35 tests, 3843 assertions, 0 failures, 1 errors, 0 pendings, 0 omissions, 0 notifications
coatl commented 15 years ago

Looks like I misunderstood the problem and didn't fix the regexp right. I didn't see that the [] was actually already inside a char class.... lemme try again.

coatl commented 14 years ago

roger, is this still failing for you? or did my last fix attempt work?

rdp commented 14 years ago
E:\dev\ruby\downloads\sequence>ruby test/test_all.rb
random seed is 181697748045864478821662018637451853
Warning:E:/installs/ruby191p376/lib/ruby/1.9.1/tmpdir.rb:14: Win32API is deprecated after Ruby 1.9.1; use dl directly instead
Loaded suite test/test_all
Started
.E.................................

  1) Error:
test_unnamed(GroupAnchorsExhaustive):
SyntaxError: (eval):1: premature end of char-class: /([\A[~]|^asdf(df)s)/
premature end of char-class: /(\A|[z^[~]asdf(df)s)/
premature end of char-class: /(\A|[z^[~]asdf(df)s)/
premature end of char-class: /([\A[~]|^asdf(df)s)/
    E:/dev/ruby/downloads/sequence/test/test_seqrex.rb:99:in `eval'
    E:/dev/ruby/downloads/sequence/test/test_seqrex.rb:99:in`block in test_unnamed'
    E:/dev/ruby/downloads/sequence/test/test_seqrex.rb:34:in `test_unnamed'

Finished in 0.15625 seconds.

35 tests, 3843 assertions, 0 failures, 1 errors, 0 pendings, 0 omissions, 0 notifications
97.1429% passed

E:\dev\ruby\downloads\sequence>ruby -v
ruby 1.9.1p376 (2009-12-07 revision 26041) [i386-mingw32]            
coatl commented 14 years ago

Gyaah. Ok, I see it in my test output too, way up at the top, above all those errors caused by the bug in 1.9. How come you don't see all those errors? You somehow aren't running >90% of the tests and assertions, it seems. There should be 1350 tests, 162313 assertions.

I'll try again to fix this....

rdp commented 14 years ago

k mine is now

1350 tests, 162248 assertions, 0 failures, 55 errors, 0 skips

(with this particular error still present at the top)