File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Sprint-3/1-implement-and-rewrite-tests/implement Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 88// Then, write the next test! :) Go through this process until all the cases are implemented
99
1010function getAngleType ( angle ) {
11- < << << << < HEAD : Sprint-3 / implement / 1 - get - angle - type . js
11+
1212 if ( angle === 90 ) return "Right angle" ;
1313 if ( angle < 90 ) return "Acute angle" ;
1414 if ( angle > 90 && angle < 180 ) return "Obtuse angle" ;
1515 if ( angle === 180 ) return "Straight angle" ;
1616 if ( angle > 180 && angle < 360 ) return "Reflex angle" ;
1717
1818 // read to the end, complete line 36, then pass your test here
19- = === === =
19+
2020 if ( angle === 90 ) {
2121 return "Right angle" ;
2222 }
2323 // Run the tests, work out what Case 2 is testing, and implement the required code here.
2424 // Then keep going for the other cases, one at a time.
25- > >>> >>> > main: Sprint - 3 / 1 - implement - and - rewrite - tests / implement / 1 - get - angle - type . js
25+
2626}
2727
2828// The line below allows us to load the getAngleType function into tests in other files.
You can’t perform that action at this time.
0 commit comments