MCPcopy Create free account
hub / github.com/bspaans/python-mingus / test_determine_triad

Method test_determine_triad

tests/unit/core/test_chords.py:188–237  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

186 self.assertEqual(chords.mediant7(x), tonic_dict[x])
187
188 def test_determine_triad(self):
189 self.chordsTest(
190 [
191 [["A minor triad", "C major sixth, second inversion"], ["A", "C", "E"]],
192 [["C major sixth", "A minor triad, first inversion"], ["C", "E", "A"]],
193 [
194 [
195 "C major sixth, first inversion",
196 "A minor triad, second inversion",
197 ],
198 ["E", "A", "C"],
199 ],
200 [["C major triad"], ["C", "E", "G"]],
201 [
202 ["E diminished triad", "G minor sixth, second inversion"],
203 ["E", "G", "Bb"],
204 ],
205 [["F augmented triad"], ["F", "A", "C#"]],
206 [
207 [
208 "C suspended fourth triad",
209 "F suspended second triad, second inversion",
210 ],
211 ["C", "F", "G"],
212 ],
213 [
214 [
215 "F suspended second triad",
216 "C suspended fourth triad, first inversion",
217 ],
218 ["F", "G", "C"],
219 ],
220 [
221 [
222 "C suspended second triad",
223 "G suspended fourth triad, first inversion",
224 ],
225 ["C", "D", "G"],
226 ],
227 [
228 [
229 "F suspended second triad, first inversion",
230 "C suspended fourth triad, second inversion",
231 ],
232 ["G", "C", "F"],
233 ],
234 ],
235 chords.determine_triad,
236 "proper naming",
237 )
238
239 def test_determine_triad_shorthand(self):
240 self.chordsTest(

Callers

nothing calls this directly

Calls 1

chordsTestMethod · 0.95

Tested by

no test coverage detected