summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testToUpperToLower.js
blob: 4bd78f3530f00e9c47affbad22888dea2a6e5bd4 (plain)
1
2
3
4
5
6
7
8
9
function testToUpperToLower() {
    var s = "Hello", s1, s2;
    for (i = 0; i < 100; ++i) {
        s1 = s.toLowerCase();
        s2 = s.toUpperCase();
    }
    return s1 + s2;
}
assertEq(testToUpperToLower(), "helloHELLO");