diff options
author | Anthony Van de Gejuchte <anthonyvdgent@gmail.com> | 2015-12-18 14:39:48 +0100 |
---|---|---|
committer | Anthony Van de Gejuchte <anthonyvdgent@gmail.com> | 2015-12-18 14:39:48 +0100 |
commit | 5cd26c005b3b171f4da8b6732de224089e55ae8a (patch) | |
tree | 158987e16e18fffdef3def05ab096459d0ba6c57 | |
parent | bd99b004137961b3b604fcd55602835bf6ffc522 (diff) | |
download | tracifyjs-5cd26c005b3b171f4da8b6732de224089e55ae8a.tar.gz tracifyjs-5cd26c005b3b171f4da8b6732de224089e55ae8a.zip |
Add tests
-rw-r--r-- | test/compress/loops.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/test/compress/loops.js b/test/compress/loops.js index cdf1f045..b7194fed 100644 --- a/test/compress/loops.js +++ b/test/compress/loops.js @@ -121,3 +121,25 @@ drop_if_else_break_4: { for (; bar() && (x(), y(), foo());) baz(), z(), k(); } } + +parse_do_while_with_semicolon: { + input: { + do { + x(); + } while (false);y() + } + expect: { + do x(); while (false);y(); + } +} + +parse_do_while_without_semicolon: { + input: { + do { + x(); + } while (false)y() + } + expect: { + do x(); while (false);y(); + } +}
\ No newline at end of file |