This commit is contained in:
tomgond 2025-04-05 19:06:34 +01:00 committed by GitHub
commit c711f1ab92
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 105 additions and 0 deletions

View file

@ -53,4 +53,26 @@ TestRegister.addTests([
},
],
},
{
name: "Time Difference Positive",
input: "03/05/2024 13:03:22;03/06/2025 13:14:50",
expectedOutput: "Years:1 Months:1 Days:0 Hours:0 Minutes:11 Seconds:28",
recipeConfig: [
{
op: "Time Difference",
args: ["Standard date and time", "DD/MM/YYYY HH:mm:ss", "Semi-colon"],
},
],
},
{
name: "Time Difference Negative",
input: "03/05/2024 13:03:22,03/05/2024 11:30:15",
expectedOutput: "Years:0 Months:0 Days:0 Hours:-1 Minutes:-33 Seconds:-7",
recipeConfig: [
{
op: "Time Difference",
args: ["Standard date and time", "DD/MM/YYYY HH:mm:ss", "Comma"],
},
],
},
]);