Sha256: 476df1685f9497dad0744d6500dde6c6da99f5326b78af62bc2b3708689489a3

Contents?: true

Size: 341 Bytes

Versions: 6

Compression:

Stored size: 341 Bytes

Contents

require 'test/unit'
require 'nodejs'
require 'nodejs/yaml'

class TestYAML < Test::Unit::TestCase
  YAMLDOC = <<~YAML
    ---
    string: hello world
    array: [1,2,3]
  YAML

  YAMLSTRUCT = {
    "string" => "hello world",
    "array" => [1,2,3]
  }

  def test_should_parse_yaml
    assert_equal(YAML.load(YAMLDOC), YAMLSTRUCT)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
opal-1.8.3.rc1 test/nodejs/test_yaml.rb
opal-1.8.2 test/nodejs/test_yaml.rb
opal-1.8.1 test/nodejs/test_yaml.rb
opal-1.8.0 test/nodejs/test_yaml.rb
opal-1.8.0.beta1 test/nodejs/test_yaml.rb
opal-1.8.0.alpha1 test/nodejs/test_yaml.rb