File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 11import { hornerScheme } from '../HornerScheme'
22
33describe ( 'Horner Scheme' , ( ) => {
4- test ( 'Case 1: testing convertation to the binary system' , ( ) => {
4+ test ( 'Case 1: testing conversion to the binary system' , ( ) => {
55 expect ( hornerScheme ( 210 , 2 ) ) . toEqual ( '11010010' )
66 expect ( hornerScheme ( - 210 , 2 ) ) . toEqual ( '-11010010' )
77 } )
8- test ( 'Case 2: testing convertation to the system with base 5' , ( ) => {
8+ test ( 'Case 2: testing conversion to the system with base 5' , ( ) => {
99 expect ( hornerScheme ( 210 , 5 ) ) . toEqual ( '1320' )
1010 expect ( hornerScheme ( - 210 , 5 ) ) . toEqual ( '-1320' )
1111 } )
12- test ( 'Case 3: testing convertation to the octal system' , ( ) => {
12+ test ( 'Case 3: testing conversion to the octal system' , ( ) => {
1313 expect ( hornerScheme ( 210 , 8 ) ) . toEqual ( '322' )
1414 expect ( hornerScheme ( - 210 , 8 ) ) . toEqual ( '-322' )
1515 } )
You can’t perform that action at this time.
0 commit comments