Skip to content

Commit

Permalink
Remove node type protection against nil node
Browse files Browse the repository at this point in the history
  • Loading branch information
shageman committed Nov 12, 2020
1 parent a209773 commit 00bf4e8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions test/node_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -233,10 +233,6 @@ class NodeTest < ActiveSupport::TestCase
assert Node.symbol?(parse(":papaya"))
end

test ".type returns nil when given a nil node" do
assert_nil Node.type(nil)
end

test ".value_from_hash looks up the node for a key in a hash" do
hash_node = parse("{ apples: 13, oranges: 27 }")
assert_equal parse("13"), Node.value_from_hash(hash_node, :apples)
Expand Down

0 comments on commit 00bf4e8

Please sign in to comment.