Skip to content

Commit 1e31ffc

Browse files
Fix small typos (#148)
I found these typos with using [`typos-cli`](https://github.com/crate-ci/typos). Now, we can obtain no typo reports from the `typos` command with this configuration (`.typos.toml`): ```toml [files] extend-exclude = [ "*.svg", "*.xml", ] [default.extend-words] # Common variable names in this project. arry = "arry" blok = "blok" eles = "eles" # Incomplete words in test data. caf = "caf" # German words in test data. abl = "abl" # NOTE: It is a part of "Ablüfe". alle = "alle" ist = "ist" technik = "technik" ``` Thank you. --------- Co-authored-by: Olle Jonsson <[email protected]>
1 parent 3b026f8 commit 1e31ffc

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

test/test_document.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def test_each_recursive
237237
document = REXML::Document.new(xml_source)
238238

239239
# Node#each_recursive iterates elements only.
240-
# This does not iterate XML declerations, comments, attributes, CDATA sections, etc.
240+
# This does not iterate XML declarations, comments, attributes, CDATA sections, etc.
241241
actual_names = []
242242
document.each_recursive do |element|
243243
actual_names << element.attributes["name"]

test/test_light.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def test_access_child_elements
6262
assert_equal( 'c', a[1].name )
6363
end
6464
65-
def test_itterate_over_children
65+
def test_iterate_over_children
6666
foo = make_small_document
6767
ctr = 0
6868
foo[0].each { ctr += 1 }

test/test_sax.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ def test_simple_doctype_listener
140140

141141
# test doctype with missing name, should throw ParseException
142142
# submitted by Jeff Barczewseki
143-
def test_doctype_with_mising_name_throws_exception
143+
def test_doctype_with_missing_name_throws_exception
144144
xml = <<~END
145145
<?xml version="1.0"?>
146146
<!DOCTYPE >

test/xpath/test_base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -651,7 +651,7 @@ def test_comparisons
651651
source = "<a><b id='1'/><b id='2'/><b id='3'/></a>"
652652
doc = REXML::Document.new(source)
653653

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

0 commit comments

Comments
 (0)