- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for compare_equal (0.31 sec)
-
staging/src/k8s.io/apiserver/pkg/cel/library/quantity_test.go
expectValue: trueVal, }, { name: "quantity_greater_false", expr: `quantity("50M").isGreaterThan(quantity("100M"))`, expectValue: falseVal, }, { name: "compare_equal", expr: `quantity("200M").compareTo(quantity("0.2G"))`, expectValue: types.Int(0), }, { name: "compare_less", expr: `quantity("50M").compareTo(quantity("50Mi"))`,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 17:22:44 UTC 2024 - 8.6K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/cel/library/cost_test.go
expr: `quantity("50Mi").isGreaterThan(quantity("50M"))`, expectEstimatedCost: checker.CostEstimate{Min: 3, Max: 3}, expectRuntimeCost: 3, }, { name: "compare_equal", expr: `quantity("200M").compareTo(quantity("0.2G")) > 0`, expectEstimatedCost: checker.CostEstimate{Min: 4, Max: 4}, expectRuntimeCost: 4, }, {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Apr 23 17:22:44 UTC 2024 - 40.8K bytes - Viewed (0)