> On Tue, 03 Feb 2004 00:09:16 +0900, Nathaniel Talbott wrote: >> The noise below is >> somehow being caused by your use of Test::Unit. Why is... >> >>> <["abababab", "ab"]> expected but was >> >> ..an array being compared to... >> >>> <#<RuntimeError: integrity: expected "a . b", got "a b a b a b a b" at >>> line 4> /home/ >> >> .. a RuntimeError? Without seeing at least the structure of your code, >> I can't figure out what's going on, but I don't think it's a Test::Unit >> issue. I can only make it so smart :-) I have made my own 'assert_regex' method, which checks several things. In the above case my regexp engine returns too quick without consuming all of the integrity data. def assert_regex(expected, regexp_string, input_string, options={}) check_options(options, :integrity_heredoc) heredoc = options[:integrity_heredoc] integrity_ary = (heredoc == nil) ? nil : heredoc2ary(heredoc) actual = nil actual_str = "nil" begin m = compile(regexp_string).match_integrity( input_string, integrity_ary) actual = m.to_a if m actual_str = actual.inspect rescue => e actual = e.inspect + " " + e.backtrace.join("\n") actual_str = actual end full_message = "<#{expected.inspect}> expected but was\n<#{actual_str}>." assert_block(full_message) { expected == actual } end Could the problem be located here ? -- Simon Strandgaard