From f143b01c6206366a1a7a702d79b514ffcaedd696 Mon Sep 17 00:00:00 2001 From: Rich-Harris Date: Sun, 18 Sep 2016 11:28:34 -0400 Subject: [PATCH] beef up test --- test/function/if-statement-with-assignment/main.js | 4 +++- test/function/if-statement-with-update/main.js | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/test/function/if-statement-with-assignment/main.js b/test/function/if-statement-with-assignment/main.js index 612436b..e885c22 100644 --- a/test/function/if-statement-with-assignment/main.js +++ b/test/function/if-statement-with-assignment/main.js @@ -1,4 +1,6 @@ var result = 0; -if ( Math.random() <= 1 ) result += 1; +if ( Math.random() <= 1 ) { + if ( Math.random() <= 1 ) result += 1; +} assert.equal( result, 1 ); diff --git a/test/function/if-statement-with-update/main.js b/test/function/if-statement-with-update/main.js index 9239794..7ab3055 100644 --- a/test/function/if-statement-with-update/main.js +++ b/test/function/if-statement-with-update/main.js @@ -1,4 +1,6 @@ var result = 0; -if ( Math.random() <= 1 ) ++result; +if ( Math.random() <= 1 ) { + if ( Math.random() <= 1 ) ++result; +} assert.equal( result, 1 );