68 Commits

Author SHA1 Message Date
281c675d63 Create algorithm for converting binary data to base64 2021-10-08 00:19:00 -05:00
124d2010f0 chore: merge Added Temperature Conversions to Javascript (#705)
* Added Temperature Conversions to Javascript

I added a file which contains essential conversions needed to swap temperature units to one another.
Hope you like it :)

* Update Conversions/TemperatureConversion.js

Suggestions saved

Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>

* Added test file 

"test" folder was created and tests required for "TemperatureConversions" was added to it

* Fixed minor syntax errors

* Update Conversions/test/TemperatureConversion.test.js

Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>

* Formatted TemperatureConversion.js 

The code was modified to comply with rules and styes recommended by the repository

* Formatted TemperatureConversion.test.js 

The code was modified to comply with rules and styes recommended by the repository

* Reformatted :) 

Hope this passes the test :)

Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com>
2021-10-07 13:10:54 +05:30
b13b12e88c chore: merge Fix/742 migrate doctest to jest (#749)
* Remove QuickSelect doctest

There are more Jest test cases already.

* Remove AverageMedian doctest

Already migrated to jest

* Migrate doctest for BinaryExponentiationRecursive.js

(also remove inline "main" test method)

* Migrate doctest for EulersTotient.js

(also remove inline "main" test method)

* Migrate doctest for PrimeFactors.js

(also remove inline "main" test method)

* Migrate doctest for BogoSort.js

Re-write prototype-polluting helper methods, too.

(also remove inline test driver code)

* Migrate doctest for BeadSort.js

(also remove inline test driver code)

* Migrate doctest for BucketSort.js

(also remove inline test driver code)

* Migrate doctest for CocktailShakerSort.js

(also remove inline test driver code)

* Migrate doctest for MergeSort.js

(also remove inline test driver code)

* Migrate doctest for QuickSort.js

(also remove inline test driver code)

* Migrate doctest for ReverseString.js

(also remove inline test driver code)

* Migrate doctest for ReverseString.js

* Migrate doctest for ValidateEmail.js

* Migrate doctest for ConwaysGameOfLife.js

(remove the animate code, too)

* Remove TernarySearch doctest

Already migrated to jest

* Migrate doctest for BubbleSort.js

(also remove inline test driver code)

* Remove doctest from CI and from dependencies

relates to #742
fixes #586

* Migrate doctest for RgbHsvConversion.js

* Add --fix option to "standard" npm script

* Migrate doctest for BreadthFirstSearch.js

(also remove inline test driver code)

* Migrate doctest for BreadthFirstShortestPath.js

(also remove inline test driver code)

* Migrate doctest for EulerMethod.js

(also remove inline test driver code)

Move manual test-code for plotting stuff in the browser in a distinct file, too. Those "*.manual-test.js" files are excluded from the UpdateDirectory.mjs script, as well.

* Migrate doctest for Mandelbrot.js

(also remove inline test driver code & moved manual drawing test into a *.manual-test.js)

* Migrate doctest for FloodFill.js

* Migrate doctest for KochSnowflake.js

(also move manual drawing test into a *.manual-test.js)

* Update npm lockfile

* Update README and COMMITTING with a few bits & bobs regarding testing & code quality
2021-10-07 12:33:38 +05:30
73402d5140 chore: Merge pull request #733 from charliejmoore/upper-case-converstion-tests
Upper case conversion tests
2021-10-05 14:24:28 +05:30
e27bc0a702 resolved conflicts 2021-10-05 14:05:11 +05:30
1589263947 fixed some spellings 2021-10-05 12:49:23 +05:30
ced6c891a6 Add tests for titleCaseConversion function 2021-10-04 12:23:05 -04:00
654c824fdd Add check to handle empty string input.
Could throw an error instead, but to be consistent with other case conversion functions in this collection, it returns an empty string when input is empty string.
2021-10-04 12:21:34 -04:00
184814745e Update description/documentation with explanation of title case, and simplifying assumptions this function makes 2021-10-04 09:56:32 -04:00
4ab047ddc5 Fix typos and add ASCII link 2021-10-04 09:53:19 -04:00
4ea13dee13 Update export style for Jest testing 2021-10-04 09:52:30 -04:00
90a59e6b60 Update function name casing to match convention 2021-10-04 09:52:10 -04:00
220e75d046 Fix standardjs warning 2021-10-04 09:44:28 -04:00
9aa890b170 Add tests for UpperCaseConversion 2021-10-04 09:37:15 -04:00
a4bde8200d Update capitalization style of function name to align with convention 2021-10-04 09:30:49 -04:00
a21264698e Update export for Jest testing 2021-10-04 09:30:17 -04:00
85f8154f07 Fix typos and update description to include a link 2021-10-04 09:28:55 -04:00
38b42cf0a4 Update DecimalToHex.js
updated as per `standard.js`
2021-10-03 16:57:52 +05:30
c35b20a4ce DecimalToHex
- Add test file DecimalToHex.test.js
- Add export to DecimalToHex.js
- Remove console.log from DecimalToHex.js
2021-10-03 12:11:34 +02:00
56ccbfcb32 chore: merge "Added DecimalToRoman" (#707)
* Added DecimalToRoman

* add explanation

* added test
2021-10-02 16:53:18 +05:30
34b783dd59 re-formate with standard.js 2021-09-04 23:06:12 +05:30
479973bd93 add RailwayTimeConversion method 2021-09-04 23:05:30 +05:30
705b1236c8 re-formate TitleCaseConversion method with standard.js 2021-08-28 13:00:43 +05:30
da675fb237 add Problem statement and Explanation source in TitleCaseConversion 2021-08-28 12:58:37 +05:30
4810119b44 add TitleCaseConversion method 2021-08-28 12:54:14 +05:30
00baf232b9 add UpperCaseConversion method 2021-08-26 23:29:23 +05:30
59fd27f1a6 add LowerCaseConversion method 2021-08-26 10:48:14 +05:30
a93fddab03 added DateDayDifference method in Conversions category 2021-08-24 15:32:27 +05:30
63c7732dda re-formate wth standard.js 2021-08-23 12:34:17 +05:30
cd26e97514 delete DateToDayCount method 2021-08-23 12:33:05 +05:30
766d35c2e9 add DateToDay method withour Date class 2021-08-23 12:28:17 +05:30
624c7c3641 change DateToDay method to DateToDayCount method 2021-08-23 01:20:07 +05:30
2be097a91e Merge pull request #274 from higorcastilho/patch-2
Create HexToDecimal.js
2021-05-23 14:47:41 +05:30
a4511d28a8 Merge pull request #327 from VishnuPothan/master
Added Oct to Decimal conversion
2021-05-23 14:31:05 +05:30
ca4c1a62af style: Fixed most styles (according to standardjs) 2021-05-21 11:16:11 +05:30
57ba1f1ee4 eslint-disable-line no-unused-vars 2021-04-12 16:27:35 +05:30
ecf4ad9eb5 update RgbHsvConversion.js 2021-04-12 16:20:43 +05:30
21c1dda447 update RgbHsvConversion.js 2021-04-12 16:16:15 +05:30
b85ac9ae00 add RgbHsvConversion.js 2021-04-12 16:11:12 +05:30
28da5fce32 Merge pull request #440 from LordKa0S/convert-any
Added implementation for arbitrary base conversion
2021-02-05 09:41:26 +05:30
3c410955ef Merge pull request #386 from RealPeha/rgb-to-hex
Add RGBToHex
2020-10-10 15:12:59 -03:00
e833b3fd40 Fixing incorrect substring indexes (#431)
Substring indexes were all off by 1, creating an incorrect output.
Also removed unnecessary `toUpperCase()` calls.
2020-10-10 23:23:09 +05:30
3b5e6748e8 Added implementation for arbitrary base conversion 2020-10-08 02:33:11 +05:30
fd1025e3ec Fix methodname and parameter type in BinaryToDecimal.js (#392)
* Update BinaryToDecimal.js

Fix typo in name

* Update BinaryToDecimal.js

Co-authored-by: vinayak <itssvinayak@gmail.com>
2020-10-06 00:13:44 +05:30
1e27f30907 Create Conversions/RGBToHex.js 2020-10-03 15:17:04 +03:00
8035c136b0 npx standard --fix filename is run successfully 2020-10-02 10:13:20 +05:30
6cd03db6e2 Added the standard javascript style 2020-10-01 16:52:37 +05:30
446f88b189 Added Oct to Decimal conversion 2020-10-01 16:42:37 +05:30
1a3a2639ba Create HexToDecimal.js
Hello. Hope this can be useful to conversions in JavaScript repository :)
2020-09-11 09:21:01 -03:00
b9c6491c79 Update BinaryToDecimal.js 2020-08-23 15:49:51 +05:30