1.0.4 • Published 3 years ago
cool_tests_itzik_duani v1.0.4
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)