-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.js
22 lines (20 loc) · 890 Bytes
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//const circle = require('./circle.js');
const short_Link = require('./short_link_generator.js');
/* unit test */
// OK
//console.log( `The area of a circle of radius 4 is ${circle.area(4)}`);
// OK
//console.log( `short_Link test: ${short_Link.test("Hi!")}`);
// OK
console.log( `short_Link test: ${short_Link.get_Short_Link(16, 2, true)}`);
if (false) {
// OK
console.log( `short_Link rand_Bool: ${short_Link.rand_Bool()}`);
console.log( `short_Link rand_Bool: ${short_Link.rand_Bool()}`);
console.log( `short_Link rand_Bool: ${short_Link.rand_Bool()}`);
console.log( `short_Link rand_Bool_Gen: ${short_Link.rand_Bool_Gen.next().value}`);
console.log( `short_Link rand_Bool_Gen: ${short_Link.rand_Bool_Gen.next().value}`);
console.log( `short_Link rand_Bool_Gen: ${short_Link.rand_Bool_Gen.next().value}`);
}
// OK
//console.log( `short_Link test: ${short_Link("Hi!")}`);