Introduce BoundedValue as a generalization of (low..high) range

Provide BoundedValue-based implementation of InExpressionGenerator,
test it on range of comparable values.
Drop unneeded test (range of comparables is already tested by
ranges/contains/inComparableRanges.kt).
This commit is contained in:
Dmitry Petrov
2017-07-05 12:19:30 +03:00
parent f4ea1a2f41
commit 4480a9bdfb
18 changed files with 436 additions and 131 deletions
@@ -1,7 +0,0 @@
// WITH_RUNTIME
fun box(): String {
if ("z" in "Alpha" .. "Omega") return "Fail 1"
if ("Gamma" !in "Alpha" .. "Omega") return "Fail 2"
return "OK"
}