{"size": 572, "ext": "js", "max_stars_repo_path": "test/fromName-test.js", "max_stars_repo_name": "danigb/music-chord", "max_stars_repo_stars_event_min_datetime": "2015-10-22T14:31:25.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-18T15:08:58.000Z", "max_issues_repo_path": "test/fromName-test.js", "max_issues_repo_name": "mcanthony/music-chord", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "test/fromName-test.js", "max_forks_repo_name": "mcanthony/music-chord", "max_forks_repo_forks_event_min_datetime": "2015-10-22T14:31:26.000Z", "max_forks_repo_forks_event_max_datetime": "2017-07-26T14:25:43.000Z"}
{"max_stars_count": 12, "max_issues_count": null, "max_forks_count": 3, "avg_line_length": 35.75, "max_line_length": 77, "alphanum_fraction": 0.5699300699}
var vows = require('vows')
var assert = require('assert')
var fromName = require('../fromName')

vows.describe('fromName').addBatch({
  'from type and tonic': function () {
    assert.deepEqual(fromName('M', 'Eb'), [ 'Eb', 'G', 'Bb' ])
    assert.deepEqual(fromName('7b9', 'C2'), ['C2', 'E2', 'G2', 'Bb2', 'Db3'])
  },
  'from name': function () {
    assert.deepEqual(fromName('C7b9'), ['C', 'E', 'G', 'Bb', 'Db'])
    assert.equal(fromName('c13#9').join(' '), 'C E G Bb D# A')
    assert.equal(fromName('c3 13#9').join(' '), 'C3 E3 G3 Bb3 D#4 A4')
  }
}).export(module)
