Sha256: fbe73f5bc4fa4ea8fa23a36c077c1c11209c9aedddfd39888d2d75f1e30edd22
Contents?: true
Size: 723 Bytes
Versions: 17
Compression:
Stored size: 723 Bytes
Contents
require File.expand_path(File.join(File.dirname(__FILE__), "/../../helper")) class UnaryNodeTest < Johnson::NodeTestCase def test_u_positive_sexp assert_sexp([[:u_pos, [:name, 'foo']]], @parser.parse('+foo;')) assert_ecma('+foo;', @parser.parse('+foo')) end def test_u_negative_sexp assert_sexp([[:u_neg, [:name, 'foo']]], @parser.parse('-foo;')) assert_ecma('-foo;', @parser.parse('-foo')) end def test_u_bit_not_sexp assert_sexp([[:bitwise_not, [:name, 'foo']]], @parser.parse('~foo;')) assert_ecma('~foo;', @parser.parse('~foo')) end def test_u_not_sexp assert_sexp([[:not, [:name, 'foo']]], @parser.parse('!foo;')) assert_ecma('!foo;', @parser.parse('!foo')) end end
Version data entries
17 entries across 17 versions & 2 rubygems