docs: fix typos (#1283)

* docs: fix typos

* fix
This commit is contained in:
Lioness100
2023-02-07 08:50:28 -08:00
committed by GitHub
parent 8cd86b1eda
commit 002b10a5aa
24 changed files with 47 additions and 47 deletions

View File

@ -29,7 +29,7 @@ const hexLookup = (bin) => {
}
const binaryToHex = (binaryString) => {
/*
Function for convertung Binary to Hex
Function for converting Binary to Hex
1. The conversion will start from Least Significant Digit (LSB) to the Most Significant Bit (MSB).
2. We divide the bits into sections of 4-bits starting from LSB to MSB.

View File

@ -21,9 +21,9 @@ const RailwayTimeConversion = (timeString) => {
return new TypeError('Argument is not a string.')
}
// split the string by ':' character.
const [hour, minute, scondWithShift] = timeString.split(':')
const [hour, minute, secondWithShift] = timeString.split(':')
// split second and shift value.
const [second, shift] = [scondWithShift.substr(0, 2), scondWithShift.substr(2)]
const [second, shift] = [secondWithShift.substr(0, 2), secondWithShift.substr(2)]
// convert shifted time to not-shift time(Railway time) by using the above explanation.
if (shift === 'PM') {
if (parseInt(hour) === 12) { return `${hour}:${minute}:${second}` } else { return `${parseInt(hour) + 12}:${minute}:${second}` }

View File

@ -80,19 +80,19 @@ describe('Testing Conversion of Rankine to Kelvin', () => {
expect(test1).toBe(6)
})
})
describe('Testing Conversion of Reamur to Celsius', () => {
it('with Reamur value', () => {
describe('Testing Conversion of Reaumur to Celsius', () => {
it('with Reaumur value', () => {
const test1 = tc.reaumurToCelsius(100)
expect(test1).toBe(125)
})
})
describe('Testing Conversion of Reamur to Fahrenheit', () => {
it('with Reamur value', () => {
describe('Testing Conversion of Reaumur to Fahrenheit', () => {
it('with Reaumur value', () => {
const test1 = tc.reaumurToFahrenheit(100)
expect(test1).toBe(257)
})
})
describe('Testing Conversion of Reamur to Kelvin', () => {
describe('Testing Conversion of Reaumur to Kelvin', () => {
it('with Reamur value', () => {
const test1 = tc.reaumurToKelvin(100)
expect(test1).toBe(398)