Sha256: 040e7eed033405ed9dff1a61d5960c820af8cb6a4ec3999ccb502c86ba06de46
Contents?: true
Size: 548 Bytes
Versions: 17
Compression:
Stored size: 548 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), "/../../helper")) class DoWhileTest < Johnson::NodeTestCase def test_do_while assert_sexp([[:do_while, [:var, [[:assign, [:name, "x"], [:lit, 10]]]], [:true]]], @parser.parse('do var x = 10; while(true);')) assert_ecma('do var x = 10; while(true);', @parser.parse('do var x = 10; while(true);')) assert_ecma("do {\n var x = 10;\n y = 20;\n} while(true);", @parser.parse('do { var x = 10; y = 20; } while(true);')) end end
Version data entries
17 entries across 17 versions & 2 rubygems