Thanks Bill.
I'm sure I was having problems before (was quite a while ago) when
using file compare, which was why I was using the file read method.
Seems to work OK now, so no idea what I was doing before!

Thanks,
Trevor

On 9 Oct, 15:32, Bill Agee <[email protected]> wrote:
> I would try comparing the files, then asserting the resulting boolean value:
>
> assert(FileUtils.compare_file('C:\foo.txt', 'C:\bar.txt'))
>
> On Fri, Oct 9, 2009 at 6:41 AM, Trevor <[email protected]> wrote:
>
> > The final part of one of my tests creates an output file and compares
> > against a reference file. The files are approx. 230Mb in size
> > The test works OK, but when the outputs are different I get both files
> > dumped into the console. As they are effectively binary files, this is
> > of no use.
> > Is there a way to prevent this "dump" occurring while still seeing the
> > actual result of the test?
>
> > This part of the test is basically:
>
> >               �...@expectedts = File.read("C:/TSFiles/dvbsub_TC101.TS")
> >               �...@actualts = File.read('C:/Reference/dvbsub_TC101.TS')
>
> >                verify_equal(@expectedTS, @actualTS)
>
> > Thanks,
> > Trevor
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to