Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix small typos #148

Merged
merged 3 commits into from
Jun 13, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/test_document.rb
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ def test_each_recursive
document = REXML::Document.new(xml_source)

# Node#each_recursive iterates elements only.
# This does not iterate XML declerations, comments, attributes, CDATA sections, etc.
# This does not iterate XML declaration, comments, attributes, CDATA sections, etc.
makenowjust marked this conversation as resolved.
Show resolved Hide resolved
actual_names = []
document.each_recursive do |element|
actual_names << element.attributes["name"]
Expand Down
2 changes: 1 addition & 1 deletion test/test_light.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def test_access_child_elements
assert_equal( 'c', a[1].name )
end

def test_itterate_over_children
def test_iterate_over_children
foo = make_small_document
ctr = 0
foo[0].each { ctr += 1 }
Expand Down
2 changes: 1 addition & 1 deletion test/test_sax.rb
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def test_simple_doctype_listener

# test doctype with missing name, should throw ParseException
# submitted by Jeff Barczewseki
def test_doctype_with_mising_name_throws_exception
def test_doctype_with_missing_name_throws_exception
xml = <<~END
<?xml version="1.0"?>
<!DOCTYPE >
Expand Down
2 changes: 1 addition & 1 deletion test/xpath/test_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ def test_comparisons
source = "<a><b id='1'/><b id='2'/><b id='3'/></a>"
doc = REXML::Document.new(source)

# NOTE TO SER: check that number() is required
# NOTE: check that number() is required
assert_equal 2, REXML::XPath.match(doc, "//b[number(@id) > 1]").size
assert_equal 3, REXML::XPath.match(doc, "//b[number(@id) >= 1]").size
assert_equal 1, REXML::XPath.match(doc, "//b[number(@id) <= 1]").size
Expand Down