summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/booleantostring.js
blob: 39ff0b1b6d0ecc8a51b1d95e0332781522fd2069 (plain)
1
2
3
4
5
6
7
8
9
var a = [true, false];
for (var i = 0; i < 1e4; i++) {
	var str = "x: " + a[i & 1];
	if (i & 1) {
		assertEq(str, "x: false");
	} else {
		assertEq(str, "x: true");
	}
}