aboutsummaryrefslogtreecommitdiff
path: root/test/compress
diff options
context:
space:
mode:
Diffstat (limited to 'test/compress')
-rw-r--r--test/compress/conditionals.js22
1 files changed, 22 insertions, 0 deletions
diff --git a/test/compress/conditionals.js b/test/compress/conditionals.js
index ab9c4108..4d54b83a 100644
--- a/test/compress/conditionals.js
+++ b/test/compress/conditionals.js
@@ -783,6 +783,28 @@ cond_12: {
}
}
+cond_13: {
+ options = {
+ conditionals: true,
+ }
+ input: {
+ x ? y(a) : z(a);
+ x ? y.f(a) : z.f(a);
+ x ? y.f(a) : z.g(a);
+ x ? y.f()(a) : z.g()(a);
+ x ? y.f.u(a) : z.g.u(a);
+ x ? y.f().u(a) : z.g().u(a);
+ }
+ expect: {
+ (x ? y : z)(a);
+ (x ? y : z).f(a);
+ x ? y.f(a) : z.g(a);
+ (x ? y.f() : z.g())(a);
+ (x ? y.f : z.g).u(a);
+ (x ? y.f() : z.g()).u(a);
+ }
+}
+
ternary_boolean_consequent: {
options = {
booleans: true,