cool_tests_itzik_duani

Cool tests on list list and string

Usage no npm install needed!

<script type="module">
  import coolTestsItzikDuani from 'https://cdn.skypack.dev/cool_tests_itzik_duani';
</script>

README

cool_tests_itzik_duani

Cool tests on list list and string

Run

npm i cool_tests_itzik_duani

APIs

count_keys_in_dictionary - Returns the size of the dictionary and its keys.

count_element_in_list - Returns the list size and duplicate members.

numbers_in_the_string - Returns the size of the string and the numbers that the string contains.

Start

const tests = require('cool_tests_itzik_duani');

tests.count_keys_in_dictionary(dict)

tests.count_element_in_list(list)

tests.numbers_in_the_string(string)

Test

const tests = require('cool_tests_itzik_duani');

var dict ={a:1,b:2}
var list = [1,2,3,3,4,5,5]
var string = "24fggh4"


tests.count_keys_in_dictionary(dict)

tests.count_element_in_list(list)

tests.numbers_in_the_string(string)