@@ -23,3 +23,38 @@ console.assert(
2323 currentOutput2 === targetOutput2 ,
2424 `current output: ${ currentOutput2 } , target output: ${ targetOutput2 } `
2525) ;
26+
27+ const currentOutput3 = formatAs12HourClock ( "19:00" ) ;
28+ const targetOutput3 = "7:00 pm" ;
29+ console . assert (
30+ currentOutput2 === targetOutput2 ,
31+ `current output: ${ currentOutput2 } , target output: ${ targetOutput2 } `
32+ ) ;
33+
34+ const currentOutput5 = formatAs12HourClock ( "19:00" ) ;
35+ const targetOutput5 = "7:00 pm" ;
36+ console . assert (
37+ currentOutput2 === targetOutput2 ,
38+ `current output: ${ currentOutput2 } , target output: ${ targetOutput2 } `
39+ ) ;
40+
41+ const currentOutput4 = formatAs12HourClock ( "22:00" ) ;
42+ const targetOutput4 = "10:00 pm" ;
43+ console . assert (
44+ currentOutput2 === targetOutput2 ,
45+ `current output: ${ currentOutput2 } , target output: ${ targetOutput2 } `
46+ ) ;
47+
48+ const currentOutput6 = formatAs12HourClock ( "22:00. " ) ;
49+ const targetOutput6 = "10:00 pm" ;
50+ console . assert (
51+ currentOutput2 === targetOutput2 ,
52+ `current output: ${ currentOutput2 } , target output: ${ targetOutput2 } `
53+ ) ;
54+
55+ const currentOutput6 = formatAs12HourClock ( "22:00. " ) ;
56+ const targetOutput6 = "10:00 pm" ;
57+ console . assert (
58+ currentOutput2 === targetOutput2 ,
59+ `current output: ${ currentOutput2 } , target output: ${ targetOutput2 } `
60+ ) ;
0 commit comments