Skip to content

Commit

Permalink
Fix small typos (#148)
Browse files Browse the repository at this point in the history
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 <olle.jonsson@gmail.com>
  • Loading branch information
makenowjust and olleolleolle authored Jun 13, 2024
1 parent 3b026f8 commit 1e31ffc
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
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 declarations, comments, attributes, CDATA sections, etc.
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

0 comments on commit 1e31ffc

Please sign in to comment.