forked from SiegfriedEhret/arnoldc-to-js
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added variable comparison in branchs - killed mutant on line 90
- Loading branch information
Showing
4 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
test/fixtures/branches/04_if-else-statements-with-variable-expressions.arnoldc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
IT'S SHOWTIME | ||
HEY CHRISTMAS TREE a | ||
YOU SET US UP 10 | ||
HEY CHRISTMAS TREE b | ||
YOU SET US UP 5 | ||
GET TO THE CHOPPER result | ||
HERE IS MY INVITATION a | ||
LET OFF SOME STEAM BENNET b | ||
ENOUGH TALK | ||
BECAUSE I'M GOING TO SAY PLEASE result | ||
TALK TO THE HAND "a is greater b" | ||
BULLSHIT | ||
TALK TO THE HAND "b is greater than or equal to a" | ||
YOU HAVE NO RESPECT FOR LOGIC | ||
YOU HAVE BEEN TERMINATED |
12 changes: 12 additions & 0 deletions
12
test/fixtures/branches/04_if-else-statements-with-variable-expressions.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
(function() { | ||
"use strict"; | ||
(function() { | ||
var a = 10; | ||
var b = 5; | ||
if (a > b) { | ||
console.log("a is greater b"); | ||
} else { | ||
console.log("b is greater than or equal to a") | ||
} | ||
}()); | ||
}()); |