Cody

Solution 1680142

Submitted on 25 Nov 2018 by William
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

Test Suite

Test Status Code Input and Output
1   Pass
notes = {'C','G'}; interval = 5; assert(isequal(note_interval(notes),interval))

2   Pass
notes = {'C','E'}; interval = 3; assert(isequal(note_interval(notes),interval))

3   Pass
notes = {'G','C'}; interval = 4; assert(isequal(note_interval(notes),interval))

4   Pass
notes = {'C','B'}; interval = 7; assert(isequal(note_interval(notes),interval))

5   Pass
notes = {'C','C'}; interval = 1; assert(isequal(note_interval(notes),interval))

6   Pass
notes = {'E','A'}; interval = 4; assert(isequal(note_interval(notes),interval))

7   Pass
notes = {'D','C'}; interval = 7; assert(isequal(note_interval(notes),interval))

8   Pass
notes = {'D','E'}; interval = 2; assert(isequal(note_interval(notes),interval))

9   Pass
notes = {'A','C'}; interval = 3; assert(isequal(note_interval(notes),interval))

10   Pass
notes = {'C','A'}; interval = 6; assert(isequal(note_interval(notes),interval))

11   Pass
notes = {'C','E'}; interval = 3; assert(isequal(note_interval(notes),interval))

12   Pass
notes = {'E','C'}; interval = 6; assert(isequal(note_interval(notes),interval))