~ubuntu-branches/ubuntu/karmic/rosegarden/karmic

« back to all changes in this revision

Viewing changes to src/test/accidentals.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Stefan Ebner
  • Date: 2008-05-02 00:33:44 UTC
  • mfrom: (1.1.7 upstream) (6.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080502003344-67vbfhgqx2yl0ksi
Tags: 1:1.7.0-1ubuntu1
* Merge from Debian unstable. (LP: #225849) Remaining Ubuntu changes:
  - Add usr/share/doc/kde/HTML to rosegarden-data, to provide online
    help documentation.
  - Change fftw3-dev to libfftw3-dev.
  - Update maintainer field as per spec.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
    return 0;
63
63
}
64
64
 
 
65
// Verifies that the height on staff for pitch 61 using flats is -1, not -2
 
66
int testDesHeight()
 
67
{
 
68
    bool useSharps = false;
 
69
 
 
70
    Pitch pitch(61);
 
71
    int h = pitch.getHeightOnStaff(Clef(Clef::Treble, 0), useSharps);
 
72
 
 
73
    if (h != -1)
 
74
    {
 
75
        std::cerr << "Error in testDesHeight: expected height -1, got " << h << std::endl;
 
76
        return -1;
 
77
    } 
 
78
    return 0;
 
79
}
 
80
 
65
81
int test_accidentals(int argc, char **argv)
66
82
{
67
83
  return testBInEMinor() +
68
84
      testFInBMinor() +
69
85
      testInvalidSuggestion() +
70
 
      testBbinBb();
 
86
      testBbinBb() +
 
87
      testDesHeight();
71
88
}