aboutsummaryrefslogtreecommitdiff
path: root/test/compress/issue-126.js
blob: 7a597b87cf8bd79bd603d193ee6f888bf0b21545 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
concatenate_rhs_strings: {
    options = {
        evaluate: true,
        unsafe: true,
    }
    input: {
        foo(bar() + 123 + "Hello" + "World");
        foo(bar() + (123 + "Hello") + "World");
        foo((bar() + 123) + "Hello" + "World");
        foo(bar() + 123 + "Hello" + "World" + ("Foo" + "Bar"));
        foo("Foo" + "Bar" + bar() + 123 + "Hello" + "World" + ("Foo" + "Bar"));
        foo("Hello" + bar() + 123 + "World");
        foo(bar() + 'Foo' + (10 + parseInt('10')));
    }
    expect: {
        foo(bar() + 123 + "HelloWorld");
        foo(bar() + "123HelloWorld");
        foo((bar() + 123) + "HelloWorld");
        foo(bar() + 123 + "HelloWorldFooBar");
        foo("FooBar" + bar() + "123HelloWorldFooBar");
        foo("Hello" + bar() + "123World");
        foo(bar() + 'Foo' + (10 + parseInt('10')));
    }
}
01dce3761714bba8e72'>Add (guix memoization)....Ludovic Courtès 2016-10-04Set Emacs config variable sentence-end-double-space....Hartmut Goebel 2016-07-19Add (guix zlib)....Ludovic Courtès 2016-07-12gexp: Add 'with-imported-modules' macro....Ludovic Courtès 2015-10-28services: Add 'modify-services'....Ludovic Courtès 2015-07-09gnu: build: Add Linux container module....David Thompson 2015-06-06store: Add 'verify-store' RPC....Ludovic Courtès 2015-05-25ui: Auto-compile user code, and improve error reporting....Ludovic Courtès 2015-05-06profiles: Generate an 'etc/profile' file....Ludovic Courtès 2015-02-26utils: Add 'modify-phases'....Ludovic Courtès 2015-02-02Set Emacs indentation for `wrap-program'....Taylan Ulrich B 2015-02-02tests: Add 'with-derivation-substitute' and use it....Ludovic Courtès 2015-02-02tests: Further factorize substitute mocks....Ludovic Courtès 2015-01-17monads: Add the state monad....Ludovic Courtès 2014-12-02monads: Add 'mwhen' and 'munless'....Ludovic Courtès