From 37b2d9f6008384d6712c44baa6d82f9d6accfdfc Mon Sep 17 00:00:00 2001 From: Yasuyuki Tanaka Date: Mon, 2 May 2016 18:18:12 +0200 Subject: [PATCH] Replace the '+' operator with String.prototype.concat() --- regression-tests/12-rpl/01-rpl-up-route.csc | 4 ++-- regression-tests/12-rpl/02-rpl-root-reboot.csc | 4 ++-- regression-tests/12-rpl/03-rpl-28-hours.csc | 4 ++-- regression-tests/12-rpl/04-rpl-large-network.csc | 4 ++-- regression-tests/12-rpl/05-rpl-up-and-down-routes.csc | 4 ++-- regression-tests/12-rpl/06-rpl-temporary-root-loss.csc | 4 ++-- regression-tests/12-rpl/08-rpl-dao-route-loss-0.csc | 4 ++-- regression-tests/12-rpl/08-rpl-dao-route-loss-1.csc | 4 ++-- regression-tests/12-rpl/08-rpl-dao-route-loss-2.csc | 4 ++-- regression-tests/12-rpl/08-rpl-dao-route-loss-3.csc | 4 ++-- regression-tests/12-rpl/08-rpl-dao-route-loss-4.csc | 4 ++-- regression-tests/12-rpl/08-rpl-dao-route-loss-5.csc | 4 ++-- regression-tests/12-rpl/09-rpl-probing.csc | 4 ++-- regression-tests/12-rpl/10-rpl-multi-dodag.csc | 4 ++-- 14 files changed, 28 insertions(+), 28 deletions(-) diff --git a/regression-tests/12-rpl/01-rpl-up-route.csc b/regression-tests/12-rpl/01-rpl-up-route.csc index fc79cfc27..da4743d44 100644 --- a/regression-tests/12-rpl/01-rpl-up-route.csc +++ b/regression-tests/12-rpl/01-rpl-up-route.csc @@ -323,11 +323,11 @@ while(true) { lostMsgs += numMissed; log.log("Missed messages " + numMissed + " before " + num + "\n"); for(i = 0; i < numMissed; i++) { - packets = packets.substr(0, lastMsg + i + 1) + "_"; + packets = packets.substr(0, lastMsg + i + 1).concat("_"); } } } - packets = packets.substr(0, num) + "*"; + packets = packets.substr(0, num).concat("*"); log.log("" + hops + " " + packets + "\n"); lastMsg = num; } diff --git a/regression-tests/12-rpl/02-rpl-root-reboot.csc b/regression-tests/12-rpl/02-rpl-root-reboot.csc index 14f87c7a9..6c4ce9d28 100644 --- a/regression-tests/12-rpl/02-rpl-root-reboot.csc +++ b/regression-tests/12-rpl/02-rpl-root-reboot.csc @@ -323,11 +323,11 @@ while(true) { lostMsgs += numMissed; log.log("Missed messages " + numMissed + " before " + num + "\n"); for(i = 0; i < numMissed; i++) { - packets = packets.substr(0, lastMsg + i + 1) + "_"; + packets = packets.substr(0, lastMsg + i + 1).concat("_"); } } } - packets = packets.substr(0, num) + "*"; + packets = packets.substr(0, num).concat("*"); log.log("" + hops + " " + packets + "\n"); lastMsg = num; } diff --git a/regression-tests/12-rpl/03-rpl-28-hours.csc b/regression-tests/12-rpl/03-rpl-28-hours.csc index 1cf2c5e43..3ebc7adda 100644 --- a/regression-tests/12-rpl/03-rpl-28-hours.csc +++ b/regression-tests/12-rpl/03-rpl-28-hours.csc @@ -272,11 +272,11 @@ while(true) { lostMsgs += numMissed; log.log("Missed messages " + numMissed + " before " + num + "\n"); for(i = 0; i < numMissed; i++) { - packets = packets.substr(0, lastMsg + i + 1) + "_"; + packets = packets.substr(0, lastMsg + i + 1).concat("_"); } } } - packets = packets.substr(0, num) + "*"; + packets = packets.substr(0, num).concat("*"); log.log("" + hops + " " + packets + "\n"); lastMsg = num; } diff --git a/regression-tests/12-rpl/04-rpl-large-network.csc b/regression-tests/12-rpl/04-rpl-large-network.csc index e40b7a339..f4ea0fda8 100644 --- a/regression-tests/12-rpl/04-rpl-large-network.csc +++ b/regression-tests/12-rpl/04-rpl-large-network.csc @@ -7038,11 +7038,11 @@ while(true) { lostMsgs += numMissed; log.log("Missed messages " + numMissed + " before " + num + "\n"); for(i = 0; i < numMissed; i++) { - packets = packets.substr(0, lastMsg + i + 1) + "_"; + packets = packets.substr(0, lastMsg + i + 1).concat("_"); } } } - packets = packets.substr(0, num) + "*"; + packets = packets.substr(0, num).concat("*"); log.log("" + hops + " " + packets + "\n"); lastMsg = num; } diff --git a/regression-tests/12-rpl/05-rpl-up-and-down-routes.csc b/regression-tests/12-rpl/05-rpl-up-and-down-routes.csc index c2b3cb506..0dd110738 100644 --- a/regression-tests/12-rpl/05-rpl-up-and-down-routes.csc +++ b/regression-tests/12-rpl/05-rpl-up-and-down-routes.csc @@ -321,11 +321,11 @@ while(true) { lostMsgs += numMissed; log.log("Missed messages " + numMissed + " before " + num + "\n"); for(i = 0; i < numMissed; i++) { - packets = packets.substr(0, lastMsg + i + 1) + "_"; + packets = packets.substr(0, lastMsg + i + 1).concat("_"); } } } - packets = packets.substr(0, num) + "*"; + packets = packets.substr(0, num).concat("*"); log.log("" + hops + " " + packets + "\n"); lastMsg = num; } diff --git a/regression-tests/12-rpl/06-rpl-temporary-root-loss.csc b/regression-tests/12-rpl/06-rpl-temporary-root-loss.csc index 08126f22b..096713102 100644 --- a/regression-tests/12-rpl/06-rpl-temporary-root-loss.csc +++ b/regression-tests/12-rpl/06-rpl-temporary-root-loss.csc @@ -327,11 +327,11 @@ while(true) { lostMsgs += numMissed; log.log("Missed messages " + numMissed + " before " + num + "\n"); for(i = 0; i < numMissed; i++) { - packets = packets.substr(0, lastMsg + i + 1) + "_"; + packets = packets.substr(0, lastMsg + i + 1).concat("_"); } } } - packets = packets.substr(0, num) + "*"; + packets = packets.substr(0, num).concat("*"); log.log("" + hops + " " + packets + "\n"); lastMsg = num; } diff --git a/regression-tests/12-rpl/08-rpl-dao-route-loss-0.csc b/regression-tests/12-rpl/08-rpl-dao-route-loss-0.csc index b5aeac9b2..0fc6e032d 100644 --- a/regression-tests/12-rpl/08-rpl-dao-route-loss-0.csc +++ b/regression-tests/12-rpl/08-rpl-dao-route-loss-0.csc @@ -339,11 +339,11 @@ while(true) { lostMsgs += numMissed; log.log("Missed messages " + numMissed + " before " + num + "\n"); for(i = 0; i < numMissed; i++) { - packets = packets.substr(0, lastMsg + i + 1) + "_"; + packets = packets.substr(0, lastMsg + i + 1).concat("_"); } } } - packets = packets.substr(0, num) + "*"; + packets = packets.substr(0, num).concat("*"); log.log("" + hops + " " + packets + "\n"); lastMsg = num; } diff --git a/regression-tests/12-rpl/08-rpl-dao-route-loss-1.csc b/regression-tests/12-rpl/08-rpl-dao-route-loss-1.csc index d17bc193c..2c0ce41ff 100644 --- a/regression-tests/12-rpl/08-rpl-dao-route-loss-1.csc +++ b/regression-tests/12-rpl/08-rpl-dao-route-loss-1.csc @@ -339,11 +339,11 @@ while(true) { lostMsgs += numMissed; log.log("Missed messages " + numMissed + " before " + num + "\n"); for(i = 0; i < numMissed; i++) { - packets = packets.substr(0, lastMsg + i + 1) + "_"; + packets = packets.substr(0, lastMsg + i + 1).concat("_"); } } } - packets = packets.substr(0, num) + "*"; + packets = packets.substr(0, num).concat("*"); log.log("" + hops + " " + packets + "\n"); lastMsg = num; } diff --git a/regression-tests/12-rpl/08-rpl-dao-route-loss-2.csc b/regression-tests/12-rpl/08-rpl-dao-route-loss-2.csc index fe3db3dc3..cdb2bd748 100644 --- a/regression-tests/12-rpl/08-rpl-dao-route-loss-2.csc +++ b/regression-tests/12-rpl/08-rpl-dao-route-loss-2.csc @@ -339,11 +339,11 @@ while(true) { lostMsgs += numMissed; log.log("Missed messages " + numMissed + " before " + num + "\n"); for(i = 0; i < numMissed; i++) { - packets = packets.substr(0, lastMsg + i + 1) + "_"; + packets = packets.substr(0, lastMsg + i + 1).concat("_"); } } } - packets = packets.substr(0, num) + "*"; + packets = packets.substr(0, num).concat("*"); log.log("" + hops + " " + packets + "\n"); lastMsg = num; } diff --git a/regression-tests/12-rpl/08-rpl-dao-route-loss-3.csc b/regression-tests/12-rpl/08-rpl-dao-route-loss-3.csc index 7ee838b2c..34b930c0d 100644 --- a/regression-tests/12-rpl/08-rpl-dao-route-loss-3.csc +++ b/regression-tests/12-rpl/08-rpl-dao-route-loss-3.csc @@ -339,11 +339,11 @@ while(true) { lostMsgs += numMissed; log.log("Missed messages " + numMissed + " before " + num + "\n"); for(i = 0; i < numMissed; i++) { - packets = packets.substr(0, lastMsg + i + 1) + "_"; + packets = packets.substr(0, lastMsg + i + 1).concat("_"); } } } - packets = packets.substr(0, num) + "*"; + packets = packets.substr(0, num).concat("*"); log.log("" + hops + " " + packets + "\n"); lastMsg = num; } diff --git a/regression-tests/12-rpl/08-rpl-dao-route-loss-4.csc b/regression-tests/12-rpl/08-rpl-dao-route-loss-4.csc index 35c5bd753..ff9a400c1 100644 --- a/regression-tests/12-rpl/08-rpl-dao-route-loss-4.csc +++ b/regression-tests/12-rpl/08-rpl-dao-route-loss-4.csc @@ -339,11 +339,11 @@ while(true) { lostMsgs += numMissed; log.log("Missed messages " + numMissed + " before " + num + "\n"); for(i = 0; i < numMissed; i++) { - packets = packets.substr(0, lastMsg + i + 1) + "_"; + packets = packets.substr(0, lastMsg + i + 1).concat("_"); } } } - packets = packets.substr(0, num) + "*"; + packets = packets.substr(0, num).concat("*"); log.log("" + hops + " " + packets + "\n"); lastMsg = num; } diff --git a/regression-tests/12-rpl/08-rpl-dao-route-loss-5.csc b/regression-tests/12-rpl/08-rpl-dao-route-loss-5.csc index 4dc5038bc..e491b666f 100644 --- a/regression-tests/12-rpl/08-rpl-dao-route-loss-5.csc +++ b/regression-tests/12-rpl/08-rpl-dao-route-loss-5.csc @@ -339,11 +339,11 @@ while(true) { lostMsgs += numMissed; log.log("Missed messages " + numMissed + " before " + num + "\n"); for(i = 0; i < numMissed; i++) { - packets = packets.substr(0, lastMsg + i + 1) + "_"; + packets = packets.substr(0, lastMsg + i + 1).concat("_"); } } } - packets = packets.substr(0, num) + "*"; + packets = packets.substr(0, num).concat("*"); log.log("" + hops + " " + packets + "\n"); lastMsg = num; } diff --git a/regression-tests/12-rpl/09-rpl-probing.csc b/regression-tests/12-rpl/09-rpl-probing.csc index 5206f1cfd..66a156e9c 100644 --- a/regression-tests/12-rpl/09-rpl-probing.csc +++ b/regression-tests/12-rpl/09-rpl-probing.csc @@ -234,12 +234,12 @@ while(true) { lostMsgs += numMissed; log.log("Missed messages " + numMissed + " before " + num + "\n"); for(i = 0; i < numMissed; i++) { - packets = packets.substr(0, lastMsg + i + 1) + "_"; + packets = packets.substr(0, lastMsg + i + 1).concat("_"); } } } lastMsgHops = hops; - packets = packets.substr(0, num) + "*"; + packets = packets.substr(0, num).concat("*"); log.log("" + hops + " " + packets + "\n"); lastMsg = num; } diff --git a/regression-tests/12-rpl/10-rpl-multi-dodag.csc b/regression-tests/12-rpl/10-rpl-multi-dodag.csc index fa015e8d9..0f446cc65 100644 --- a/regression-tests/12-rpl/10-rpl-multi-dodag.csc +++ b/regression-tests/12-rpl/10-rpl-multi-dodag.csc @@ -368,11 +368,11 @@ while(true) { lostMsgs += numMissed; log.log("Missed messages " + numMissed + " before " + num + "\n"); for(i = 0; i < numMissed; i++) { - packets = packets.substr(0, lastMsg + i + 1) + "_"; + packets = packets.substr(0, lastMsg + i + 1).concat("_"); } } } - packets = packets.substr(0, num) + "*"; + packets = packets.substr(0, num).concat("*"); log.log("" + hops + " " + packets + "\n"); lastMsg = num; }