~ubuntu-branches/ubuntu/quantal/libsamplerate/quantal

« back to all changes in this revision

Viewing changes to tests/termination_test.c

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2009-02-17 23:35:15 UTC
  • mfrom: (1.1.5 upstream) (4.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090217233515-vblyud7n95kj76u5
Tags: 0.1.7-2
Added callback_test.dpatch to correct rounding error in callback test,
closes: #515658.

Show diffs side-by-side

added added

removed removed

Lines of Context:
127
127
                exit (1) ;
128
128
                } ;
129
129
 
130
 
        if (src_data.input_frames_used != input_len)
 
130
        if (abs (src_data.input_frames_used - input_len) > 1)
131
131
        {       printf ("\n\nLine %d : input_frames_used should be %d, is %ld.\n\n",
132
132
                                         __LINE__, input_len, src_data.input_frames_used) ;
133
133
                printf ("\tsrc_ratio  : %.4f\n", src_ratio) ;