Skip to content

Commit

Permalink
fix C#m chord per \#29
Browse files Browse the repository at this point in the history
  • Loading branch information
tardate committed Jul 24, 2012
1 parent 90c7838 commit a8b92e5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion javascripts/jtab.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ var jtab = {
Caug : [ [ 0, [-1 ], [-1 ], [2,2], [1,1], [1,1], [4,4] ], [ ] ],

"C#" : [ [ 0, [-1 ], [4,4], [3,4], [1,1], [2,2], [1,1] ], [ ] ],
"C#m" : [ [ 0, [-1 ], [-1 ], [2,2], [1,1], [3,2], [0 ] ], [ ] ],
"C#m" : [ [ 0, [-1 ], [-1 ], [2,2], [1,1], [2,3], [0 ] ], [ ] ],
"C#6" : [ [ 0, [-1 ], [-1 ], [3,2], [3,3], [2,1], [4,4] ], [ ] ],
"C#m6" : [ [ 0, [-1 ], [4,3], [2,1], [3,2], [2,1], [4,4] ], [ ] ],
"C#69" : [ [ 2, [-1 ], [4,2], [3,1], [3,1], [4,3], [4,4] ], [ ] ],
Expand Down
9 changes: 9 additions & 0 deletions jtab-unittest.html
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,15 @@ <h1>jTab - Unit Tests</h1>
c = new jtabChord(token);
assert( c.isValid, "jtabChord('" + token + "') should be valid after update" );
assertHashEqual( modelChordArrayNew, c.chordArray, "jtabChord('" + token + "') returned incorrect chordArray after update" );
}},

testChord_Csharpm_fingering: function() { with(this) {
var token = 'C#m';
var modelChordArray = [ 0, [-1 ], [-1], [2,2], [1,1], [2,3], [0] ];
var c = new jtabChord(token);
assert( c.isValid, "jtabChord('" + token + "') should be valid" );
assert( ! c.isCaged, "jtabChord('" + token + "') should not be CAGED" );
assertHashEqual( modelChordArray, c.chordArray, "jtabChord('" + token + "') returned incorrect chordArray" );
}}

});
Expand Down

0 comments on commit a8b92e5

Please # to comment.