Slackbot
08/01/2022, 10:23 AMManoj H Upendra Kumar
08/01/2022, 10:24 AMManoj H Upendra Kumar
08/01/2022, 10:26 AMVampire
08/01/2022, 1:58 PMManoj H Upendra Kumar
08/01/2022, 2:00 PMVampire
08/01/2022, 2:22 PMVampire
08/01/2022, 2:26 PMassert System.properties["java.specification.version"] == "1.8" || "11" || "12" || "13" will always be true.
You basically wrote assert System.properties["java.specification.version"] == "1.8" || true || true || trueManoj H Upendra Kumar
08/01/2022, 2:35 PMManoj H Upendra Kumar
08/01/2022, 2:35 PMVampire
08/01/2022, 2:39 PMjava.specification.version is equal to "1.8"
or "11" is true
or "12" is true
or "13" is true
And according to Groovy truth rules, the last three are always true.Vampire
08/01/2022, 2:40 PMVampire
08/01/2022, 2:40 PM