@@ -2025,7 +2025,7 @@ mod tests {
20252025
20262026 // First candidate should be rank 1
20272027 let first = candidates. get ( 0 ) ;
2028- let first_candidate = first. unchecked_into ( ) ;
2028+ let first_candidate: KordScaleCandidate = first. unchecked_into ( ) ;
20292029 assert_eq ! ( first_candidate. rank( ) , 1 , "First candidate should be rank 1" ) ;
20302030 assert ! ( !first_candidate. name( ) . is_empty( ) , "Candidate should have a name" ) ;
20312031 assert ! ( !first_candidate. reason( ) . is_empty( ) , "Candidate should have a reason" ) ;
@@ -2039,7 +2039,7 @@ mod tests {
20392039 let candidates = chord. scale_candidates ( ) ;
20402040
20412041 let first = candidates. get ( 0 ) ;
2042- let first_candidate = first. unchecked_into ( ) ;
2042+ let first_candidate: KordScaleCandidate = first. unchecked_into ( ) ;
20432043 let notes = first_candidate. notes ( ) ;
20442044
20452045 assert ! ( notes. length( ) >= 5 , "Scale should have at least 5 notes" ) ;
@@ -2058,7 +2058,7 @@ mod tests {
20582058
20592059 // First candidate should be Ionian (rank 1)
20602060 let first = candidates. get ( 0 ) ;
2061- let first_candidate = first. unchecked_into ( ) ;
2061+ let first_candidate: KordScaleCandidate = first. unchecked_into ( ) ;
20622062 assert_eq ! ( first_candidate. rank( ) , 1 ) ;
20632063 assert ! ( first_candidate. is_mode( ) , "First candidate for major should be a mode" ) ;
20642064 assert ! ( first_candidate. name( ) . to_lowercase( ) . contains( "ionian" ) ||
@@ -2076,7 +2076,7 @@ mod tests {
20762076
20772077 // First candidate should be Mixolydian (rank 1)
20782078 let first = candidates. get ( 0 ) ;
2079- let first_candidate = first. unchecked_into ( ) ;
2079+ let first_candidate: KordScaleCandidate = first. unchecked_into ( ) ;
20802080 assert_eq ! ( first_candidate. rank( ) , 1 ) ;
20812081 assert ! ( first_candidate. is_mode( ) , "First candidate should be a mode" ) ;
20822082 assert ! ( first_candidate. name( ) . to_lowercase( ) . contains( "mixolydian" ) ,
@@ -2097,7 +2097,7 @@ mod tests {
20972097
20982098 for i in 0 ..candidates. length ( ) {
20992099 let candidate_val = candidates. get ( i) ;
2100- let candidate = candidate_val. unchecked_into ( ) ;
2100+ let candidate: KordScaleCandidate = candidate_val. unchecked_into ( ) ;
21012101
21022102 if candidate. is_mode ( ) {
21032103 has_mode = true ;
@@ -2121,7 +2121,7 @@ mod tests {
21212121
21222122 // First candidate should be Altered mode
21232123 let first = candidates. get ( 0 ) ;
2124- let first_candidate = first. unchecked_into ( ) ;
2124+ let first_candidate: KordScaleCandidate = first. unchecked_into ( ) ;
21252125 assert_eq ! ( first_candidate. rank( ) , 1 ) ;
21262126 assert ! ( first_candidate. name( ) . to_lowercase( ) . contains( "altered" ) ,
21272127 "First candidate for 7#9 should be altered mode" ) ;
@@ -2137,7 +2137,7 @@ mod tests {
21372137
21382138 // First candidate should be Locrian
21392139 let first = candidates. get ( 0 ) ;
2140- let first_candidate = first. unchecked_into ( ) ;
2140+ let first_candidate: KordScaleCandidate = first. unchecked_into ( ) ;
21412141 assert_eq ! ( first_candidate. rank( ) , 1 ) ;
21422142 assert ! ( first_candidate. name( ) . to_lowercase( ) . contains( "locrian" ) ,
21432143 "First candidate for m7b5 should be locrian" ) ;
@@ -2152,7 +2152,7 @@ mod tests {
21522152 let mut prev_rank = 0u8 ;
21532153 for i in 0 ..candidates. length ( ) {
21542154 let candidate_val = candidates. get ( i) ;
2155- let candidate = candidate_val. unchecked_into ( ) ;
2155+ let candidate: KordScaleCandidate = candidate_val. unchecked_into ( ) ;
21562156 let rank = candidate. rank ( ) ;
21572157
21582158 assert ! ( rank >= prev_rank, "Ranks should be in ascending order" ) ;
@@ -2167,7 +2167,7 @@ mod tests {
21672167 let candidates = chord. scale_candidates ( ) ;
21682168
21692169 let first = candidates. get ( 0 ) ;
2170- let first_candidate = first. unchecked_into ( ) ;
2170+ let first_candidate: KordScaleCandidate = first. unchecked_into ( ) ;
21712171 let copy = first_candidate. copy ( ) ;
21722172
21732173 assert_eq ! ( first_candidate. rank( ) , copy. rank( ) , "Copy should have same rank" ) ;
@@ -2188,8 +2188,8 @@ mod tests {
21882188 assert ! ( g_candidates. length( ) > 0 , "G should have candidates" ) ;
21892189
21902190 // Get first candidate notes for each
2191- let c_first = c_candidates. get ( 0 ) . unchecked_into ( ) ;
2192- let g_first = g_candidates. get ( 0 ) . unchecked_into ( ) ;
2191+ let c_first: KordScaleCandidate = c_candidates. get ( 0 ) . unchecked_into ( ) ;
2192+ let g_first: KordScaleCandidate = g_candidates. get ( 0 ) . unchecked_into ( ) ;
21932193
21942194 let c_notes = c_first. notes_string ( ) ;
21952195 let g_notes = g_first. notes_string ( ) ;
@@ -2207,7 +2207,7 @@ mod tests {
22072207 let mut has_pentatonic = false ;
22082208 for i in 0 ..candidates. length ( ) {
22092209 let candidate_val = candidates. get ( i) ;
2210- let candidate = candidate_val. unchecked_into ( ) ;
2210+ let candidate: KordScaleCandidate = candidate_val. unchecked_into ( ) ;
22112211
22122212 if candidate. name ( ) . to_lowercase ( ) . contains ( "pentatonic" ) {
22132213 has_pentatonic = true ;
@@ -2230,7 +2230,7 @@ mod tests {
22302230 let mut has_blues = false ;
22312231 for i in 0 ..candidates. length ( ) {
22322232 let candidate_val = candidates. get ( i) ;
2233- let candidate = candidate_val. unchecked_into ( ) ;
2233+ let candidate: KordScaleCandidate = candidate_val. unchecked_into ( ) ;
22342234
22352235 if candidate. name ( ) . to_lowercase ( ) . contains ( "blues" ) {
22362236 has_blues = true ;
0 commit comments