text: // node Toscanini.spec.js to run this test - simple as that!
  // ...but if you want pretty output use npm run test or npm t
  "use strict";var cov_259l78nd1p=function(){var path="/Users/galina/Documents/virginia-tech/year3summer/Toscanini/API/Toscanini.spec.js",hash="5e385b861aab3a38d4bb61f4edddd958fa63411b",global=new Function('return this')(),gcv="__coverage__",coverageData={path:"/Users/galina/Documents/virginia-tech/year3summer/Toscanini/API/Toscanini.spec.js",statementMap:{"0":{start:{line:4,column:11},end:{line:4,column:24}},"1":{start:{line:5,column:13},end:{line:5,column:33}},"2":{start:{line:6,column:18},end:{line:6,column:40}},"3":{start:{line:8,column:0},end:{line:48,column:3}},"4":{start:{line:10,column:19},end:{line:10,column:64}},"5":{start:{line:11,column:21},end:{line:11,column:40}},"6":{start:{line:14,column:18},end:{line:14,column:43}},"7":{start:{line:15,column:22},end:{line:15,column:39}},"8":{start:{line:16,column:22},end:{line:16,column:39}},"9":{start:{line:17,column:24},end:{line:17,column:26}},"10":{start:{line:18,column:24},end:{line:18,column:26}},"11":{start:{line:19,column:4},end:{line:19,column:61}},"12":{start:{line:20,column:4},end:{line:20,column:61}},"13":{start:{line:24,column:19},end:{line:24,column:49}},"14":{start:{line:25,column:21},end:{line:25,column:41}},"15":{start:{line:26,column:4},end:{line:26,column:56}},"16":{start:{line:30,column:19},end:{line:30,column:63}},"17":{start:{line:31,column:21},end:{line:31,column:23}},"18":{start:{line:32,column:4},end:{line:32,column:61}},"19":{start:{line:36,column:19},end:{line:36,column:63}},"20":{start:{line:37,column:21},end:{line:37,column:23}},"21":{start:{line:38,column:4},end:{line:38,column:61}},"22":{start:{line:42,column:19},end:{line:42,column:25}},"23":{start:{line:43,column:21},end:{line:43,column:49}},"24":{start:{line:44,column:4},end:{line:44,column:54}},"25":{start:{line:47,column:2},end:{line:47,column:10}},"26":{start:{line:50,column:0},end:{line:61,column:3}},"27":{start:{line:52,column:19},end:{line:52,column:56}},"28":{start:{line:53,column:20},end:{line:53,column:39}},"29":{start:{line:56,column:19},end:{line:56,column:55}},"30":{start:{line:57,column:21},end:{line:57,column:36}},"31":{start:{line:58,column:4},end:{line:58,column:54}},"32":{start:{line:60,column:2},end:{line:60,column:10}},"33":{start:{line:63,column:0},end:{line:81,column:3}},"34":{start:{line:65,column:19},end:{line:65,column:60}},"35":{start:{line:66,column:20},end:{line:66,column:39}},"36":{start:{line:69,column:19},end:{line:69,column:61}},"37":{start:{line:70,column:21},end:{line:70,column:31}},"38":{start:{line:71,column:4},end:{line:71,column:62}},"39":{start:{line:75,column:19},end:{line:75,column:59}},"40":{start:{line:76,column:21},end:{line:76,column:30}},"41":{start:{line:77,column:4},end:{line:77,column:62}},"42":{start:{line:80,column:2},end:{line:80,column:10}},"43":{start:{line:83,column:0},end:{line:101,column:3}},"44":{start:{line:85,column:19},end:{line:85,column:61}},"45":{start:{line:86,column:21},end:{line:86,column:40}},"46":{start:{line:89,column:19},end:{line:89,column:40}},"47":{start:{line:90,column:21},end:{line:90,column:30}},"48":{start:{line:91,column:4},end:{line:91,column:47}},"49":{start:{line:95,column:19},end:{line:95,column:63}},"50":{start:{line:96,column:21},end:{line:96,column:58}},"51":{start:{line:97,column:4},end:{line:97,column:47}},"52":{start:{line:100,column:2},end:{line:100,column:10}},"53":{start:{line:103,column:0},end:{line:114,column:3}},"54":{start:{line:105,column:19},end:{line:105,column:72}},"55":{start:{line:106,column:20},end:{line:106,column:39}},"56":{start:{line:109,column:19},end:{line:109,column:48}},"57":{start:{line:110,column:21},end:{line:110,column:35}},"58":{start:{line:111,column:4},end:{line:111,column:55}},"59":{start:{line:113,column:2},end:{line:113,column:10}},"60":{start:{line:116,column:0},end:{line:178,column:3}},"61":{start:{line:118,column:19},end:{line:118,column:65}},"62":{start:{line:119,column:21},end:{line:119,column:40}},"63":{start:{line:122,column:19},end:{line:122,column:49}},"64":{start:{line:123,column:20},end:{line:125,column:51}},"65":{start:{line:126,column:4},end:{line:126,column:56}},"66":{start:{line:130,column:19},end:{line:130,column:63}},"67":{start:{line:131,column:21},end:{line:131,column:23}},"68":{start:{line:132,column:4},end:{line:132,column:61}},"69":{start:{line:136,column:19},end:{line:136,column:69}},"70":{start:{line:137,column:21},end:{line:137,column:23}},"71":{start:{line:138,column:4},end:{line:138,column:67}},"72":{start:{line:142,column:19},end:{line:142,column:31}},"73":{start:{line:143,column:21},end:{line:143,column:59}},"74":{start:{line:144,column:4},end:{line:144,column:63}},"75":{start:{line:148,column:19},end:{line:148,column:31}},"76":{start:{line:149,column:21},end:{line:149,column:49}},"77":{start:{line:150,column:4},end:{line:150,column:60}},"78":{start:{line:154,column:19},end:{line:154,column:35}},"79":{start:{line:155,column:21},end:{line:155,column:60}},"80":{start:{line:156,column:4},end:{line:156,column:64}},"81":{start:{line:160,column:19},end:{line:160,column:35}},"82":{start:{line:161,column:21},end:{line:161,column:50}},"83":{start:{line:162,column:4},end:{line:162,column:61}},"84":{start:{line:166,column:19},end:{line:166,column:43}},"85":{start:{line:167,column:21},end:{line:167,column:49}},"86":{start:{line:168,column:4},end:{line:168,column:53}},"87":{start:{line:172,column:19},end:{line:172,column:43}},"88":{start:{line:173,column:21},end:{line:173,column:42}},"89":{start:{line:174,column:4},end:{line:174,column:53}},"90":{start:{line:177,column:2},end:{line:177,column:10}},"91":{start:{line:180,column:0},end:{line:204,column:3}},"92":{start:{line:182,column:19},end:{line:182,column:64}},"93":{start:{line:183,column:21},end:{line:183,column:40}},"94":{start:{line:186,column:19},end:{line:186,column:48}},"95":{start:{line:187,column:21},end:{line:187,column:44}},"96":{start:{line:188,column:4},end:{line:188,column:55}},"97":{start:{line:192,column:19},end:{line:192,column:36}},"98":{start:{line:193,column:21},end:{line:193,column:52}},"99":{start:{line:194,column:4},end:{line:194,column:56}},"100":{start:{line:198,column:19},end:{line:198,column:36}},"101":{start:{line:199,column:21},end:{line:199,column:57}},"102":{start:{line:200,column:4},end:{line:200,column:61}},"103":{start:{line:203,column:2},end:{line:203,column:10}}},fnMap:{"0":{name:"(anonymous_0)",decl:{start:{line:8,column:28},end:{line:8,column:29}},loc:{start:{line:9,column:0},end:{line:48,column:1}},line:9},"1":{name:"(anonymous_1)",decl:{start:{line:50,column:14},end:{line:50,column:15}},loc:{start:{line:51,column:0},end:{line:61,column:1}},line:51},"2":{name:"(anonymous_2)",decl:{start:{line:63,column:18},end:{line:63,column:19}},loc:{start:{line:64,column:0},end:{line:81,column:1}},line:64},"3":{name:"(anonymous_3)",decl:{start:{line:83,column:19},end:{line:83,column:20}},loc:{start:{line:84,column:0},end:{line:101,column:1}},line:84},"4":{name:"(anonymous_4)",decl:{start:{line:103,column:28},end:{line:103,column:29}},loc:{start:{line:104,column:0},end:{line:114,column:1}},line:104},"5":{name:"(anonymous_5)",decl:{start:{line:116,column:29},end:{line:116,column:30}},loc:{start:{line:117,column:0},end:{line:178,column:1}},line:117},"6":{name:"(anonymous_6)",decl:{start:{line:180,column:27},end:{line:180,column:28}},loc:{start:{line:181,column:0},end:{line:204,column:1}},line:181}},branchMap:{},s:{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"46":0,"47":0,"48":0,"49":0,"50":0,"51":0,"52":0,"53":0,"54":0,"55":0,"56":0,"57":0,"58":0,"59":0,"60":0,"61":0,"62":0,"63":0,"64":0,"65":0,"66":0,"67":0,"68":0,"69":0,"70":0,"71":0,"72":0,"73":0,"74":0,"75":0,"76":0,"77":0,"78":0,"79":0,"80":0,"81":0,"82":0,"83":0,"84":0,"85":0,"86":0,"87":0,"88":0,"89":0,"90":0,"91":0,"92":0,"93":0,"94":0,"95":0,"96":0,"97":0,"98":0,"99":0,"100":0,"101":0,"102":0,"103":0},f:{"0":0,"1":0,"2":0,"3":0,"4":0,"5":0,"6":0},b:{},_coverageSchema:"332fd63041d2c1bcb487cc26dd0d5f7d97098a6c"},coverage=global[gcv]||(global[gcv]={});if(coverage[path]&&coverage[path].hash===hash){return coverage[path];}coverageData.hash=hash;return coverage[path]=coverageData;}();const fs=(++cov_259l78nd1p.s[0],require("fs"));const test=(++cov_259l78nd1p.s[1],require("tape").test);const Toscanini=(++cov_259l78nd1p.s[2],require("./Toscanini"));++cov_259l78nd1p.s[3];test("ava_maria_pg1 tests",t=>{++cov_259l78nd1p.f[0];const musicXML=(++cov_259l78nd1p.s[4],fs.readFileSync("./scores/ava_maria_pg1.xml"));const toscanini=(++cov_259l78nd1p.s[5],Toscanini(musicXML));{const range=(++cov_259l78nd1p.s[6],toscanini.getPitchRange());const actualMin=(++cov_259l78nd1p.s[7],range["minPitch"]);const actualMax=(++cov_259l78nd1p.s[8],range["maxPitch"]);const expectedMin=(++cov_259l78nd1p.s[9],15);//Eb
  const expectedMax=(++cov_259l78nd1p.s[10],68);++cov_259l78nd1p.s[11];t.deepEqual(actualMin,expectedMin,"getPitchRange min");++cov_259l78nd1p.s[12];t.deepEqual(actualMax,expectedMax,"getPitchRange max");}{const actual=(++cov_259l78nd1p.s[13],toscanini.getInstrumentNames());const expected=(++cov_259l78nd1p.s[14],["Voice","Piano"]);++cov_259l78nd1p.s[15];t.deepEqual(actual,expected,"getInstrumentNames");}{const actual=(++cov_259l78nd1p.s[16],toscanini.getPitchRange("Voice")["minPitch"]);const expected=(++cov_259l78nd1p.s[17],53);//F
  ++cov_259l78nd1p.s[18];t.deepEqual(actual,expected,"getPitchRange Voice min");}{const actual=(++cov_259l78nd1p.s[19],toscanini.getPitchRange("Voice")["maxPitch"]);const expected=(++cov_259l78nd1p.s[20],65);//F
  ++cov_259l78nd1p.s[21];t.deepEqual(actual,expected,"getPitchRange Voice max");}{const actual=(++cov_259l78nd1p.s[22],["Bb"]);const expected=(++cov_259l78nd1p.s[23],toscanini.getKeySignatures());++cov_259l78nd1p.s[24];t.deepEqual(actual,expected,"getKeySignatures");}++cov_259l78nd1p.s[25];t.end();});++cov_259l78nd1p.s[26];test("basic",t=>{++cov_259l78nd1p.f[1];const musicxml=(++cov_259l78nd1p.s[27],fs.readFileSync("./scores/basic.xml"));const toscanini=(++cov_259l78nd1p.s[28],Toscanini(musicxml));{const actual=(++cov_259l78nd1p.s[29],toscanini.getValsByTagName("octave"));const expected=(++cov_259l78nd1p.s[30],["4","4","5"]);++cov_259l78nd1p.s[31];t.deepEqual(actual,expected,"getValsByTagName");}++cov_259l78nd1p.s[32];t.end();});++cov_259l78nd1p.s[33];test("two_parts",t=>{++cov_259l78nd1p.f[2];const musicXML=(++cov_259l78nd1p.s[34],fs.readFileSync("./scores/two_parts.xml"));const toscanini=(++cov_259l78nd1p.s[35],Toscanini(musicXML));{const actual=(++cov_259l78nd1p.s[36],toscanini.getInstrumentsWithMelody("BGBC"));const expected=(++cov_259l78nd1p.s[37],["Violin"]);++cov_259l78nd1p.s[38];t.deepEqual(actual,expected,"getInstrumentsWithMelody");}{const actual=(++cov_259l78nd1p.s[39],toscanini.getInstrumentsWithMelody("GD"));const expected=(++cov_259l78nd1p.s[40],["Flute"]);++cov_259l78nd1p.s[41];t.deepEqual(actual,expected,"getInstrumentsWithMelody");}++cov_259l78nd1p.s[42];t.end();});++cov_259l78nd1p.s[43];test("two_tempos",t=>{++cov_259l78nd1p.f[3];const musicXML=(++cov_259l78nd1p.s[44],fs.readFileSync("./scores/two_tempos.xml"));const toscanini=(++cov_259l78nd1p.s[45],Toscanini(musicXML));{const actual=(++cov_259l78nd1p.s[46],toscanini.getTempos());const expected=(++cov_259l78nd1p.s[47],[105,90]);++cov_259l78nd1p.s[48];t.deepEqual(actual,expected,"getTempos");}{//confirms for single instrument we can use the same queries
  const actual=(++cov_259l78nd1p.s[49],toscanini.getPitchRange("Flute")["minPitch"]);const expected=(++cov_259l78nd1p.s[50],toscanini.getPitchRange()["minPitch"]);++cov_259l78nd1p.s[51];t.deepEqual(actual,expected,"getTempos");}++cov_259l78nd1p.s[52];t.end();});++cov_259l78nd1p.s[53];test("two_time_signatures",t=>{++cov_259l78nd1p.f[4];const musicxml=(++cov_259l78nd1p.s[54],fs.readFileSync("./scores/time_signature_change.xml"));const toscanini=(++cov_259l78nd1p.s[55],Toscanini(musicxml));{const actual=(++cov_259l78nd1p.s[56],toscanini.getTimeSignatures());const expected=(++cov_259l78nd1p.s[57],[[4,4],[9,8]]);++cov_259l78nd1p.s[58];t.deepEqual(actual,expected,"getTimeSignatures");}++cov_259l78nd1p.s[59];t.end();});++cov_259l78nd1p.s[60];test("vivaldi_winter tests",t=>{++cov_259l78nd1p.f[5];const musicXML=(++cov_259l78nd1p.s[61],fs.readFileSync("./scores/vivaldi_winter.xml"));const toscanini=(++cov_259l78nd1p.s[62],Toscanini(musicXML));{const actual=(++cov_259l78nd1p.s[63],toscanini.getInstrumentNames());const expected=(++cov_259l78nd1p.s[64],["Solo Violin","Violin I","Violin II","Viola","Violoncello","Contrabass","Harpsichord"]);++cov_259l78nd1p.s[65];t.deepEqual(actual,expected,"getInstrumentNames");}{const actual=(++cov_259l78nd1p.s[66],toscanini.getPitchRange("Viola")["maxPitch"]);const expected=(++cov_259l78nd1p.s[67],62);//D5
  ++cov_259l78nd1p.s[68];t.deepEqual(actual,expected,"getPitchRange Viola max");}{const actual=(++cov_259l78nd1p.s[69],toscanini.getPitchRange("Solo Violin")["maxPitch"]);const expected=(++cov_259l78nd1p.s[70],79);//G6
  ++cov_259l78nd1p.s[71];t.deepEqual(actual,expected,"getPitchRange Solo Violin max");}{const actual=(++cov_259l78nd1p.s[72],["Ab","Eb"]);const expected=(++cov_259l78nd1p.s[73],toscanini.getKeySignatures("Violin I"));++cov_259l78nd1p.s[74];t.deepEqual(actual,expected,"getKeySignatures Violin I");}{const actual=(++cov_259l78nd1p.s[75],["Ab","Eb"]);const expected=(++cov_259l78nd1p.s[76],toscanini.getKeySignatures());++cov_259l78nd1p.s[77];t.deepEqual(actual,expected,"getKeySignatures score");}{const actual=(++cov_259l78nd1p.s[78],[[4,4],[3,8]]);const expected=(++cov_259l78nd1p.s[79],toscanini.getTimeSignatures("Violin I"));++cov_259l78nd1p.s[80];t.deepEqual(actual,expected,"getTimeSignatures Violin I");}{const actual=(++cov_259l78nd1p.s[81],[[4,4],[3,8]]);const expected=(++cov_259l78nd1p.s[82],toscanini.getTimeSignatures());++cov_259l78nd1p.s[83];t.deepEqual(actual,expected,"getTimeSignatures score");}{const actual=(++cov_259l78nd1p.s[84],[68,60,33,78,45,40]);const expected=(++cov_259l78nd1p.s[85],toscanini.getTempos("Viola"));++cov_259l78nd1p.s[86];t.deepEqual(actual,expected,"getTempos Viola");}{const actual=(++cov_259l78nd1p.s[87],[68,60,33,78,45,40]);const expected=(++cov_259l78nd1p.s[88],toscanini.getTempos());++cov_259l78nd1p.s[89];t.deepEqual(actual,expected,"getTempos score");}++cov_259l78nd1p.s[90];t.end();});++cov_259l78nd1p.s[91];test("dynamics_test test",t=>{++cov_259l78nd1p.f[6];const musicXML=(++cov_259l78nd1p.s[92],fs.readFileSync("./scores/dynamics_test.xml"));const toscanini=(++cov_259l78nd1p.s[93],Toscanini(musicXML));{const actual=(++cov_259l78nd1p.s[94],["pp","f","mp","ff","mf"]);const expected=(++cov_259l78nd1p.s[95],toscanini.getDynamics());++cov_259l78nd1p.s[96];t.deepEqual(actual,expected,"getDynamics score");}{const actual=(++cov_259l78nd1p.s[97],["pp","f","mp"]);const expected=(++cov_259l78nd1p.s[98],toscanini.getDynamics("Violin"));++cov_259l78nd1p.s[99];t.deepEqual(actual,expected,"getDynamics Violin");}{const actual=(++cov_259l78nd1p.s[100],["ff","f","mf"]);const expected=(++cov_259l78nd1p.s[101],toscanini.getDynamics("Violoncello"));++cov_259l78nd1p.s[102];t.deepEqual(actual,expected,"getDynamics Violoncello");}++cov_259l78nd1p.s[103];t.end();});