Skip to content

Commit

Permalink
Sample
Browse files Browse the repository at this point in the history
  • Loading branch information
PanosCodes committed Oct 19, 2020
1 parent 2491334 commit c91a3a7
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
19 changes: 19 additions & 0 deletions stdlib/yaml/sample.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
# An employee record
name: Martin D'vloper
job: Developer
skill: Elite
employed: True
foods:
- Apple
- Orange
- Strawberry
- Mango
languages:
perl: Elite
python: Elite
pascal: Lame
education: |
4 GCSEs
3 A-Levels
BSc in the Internet of Things
12 changes: 12 additions & 0 deletions test/stdlib/YAML_test.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
require_relative "test_helper"
require 'yaml'

class YAMLTest < Minitest::Test
include TypeAssertions
library 'yaml'
testing 'singleton(::YAML)'

def test_load_accepts_string
assert_send_type "(String) -> untyped", YAML, :load, "abcde"
end
end

0 comments on commit c91a3a7

Please sign in to comment.