Skip to content

Commit 489a1a1

Browse files
committed
Add comments explaining test intent
1 parent d63ec17 commit 489a1a1

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

test/version_sorter_test.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ def test_sorts_non_version_data_with_trailing_numbers
9696
assert_equal sorted, VersionSorter.sort(non_versions)
9797
end
9898

99+
# This verifies the sort order of a subset of `test/tags.txt`
99100
def test_yui_style_tags
100101
yui_tags = [
101102
"yui3-571", "yui3-309", "yui3-1405", "yui3-1537", "yui3-440",
@@ -109,6 +110,7 @@ def test_yui_style_tags
109110
assert_equal sorted, VersionSorter.sort(yui_tags)
110111
end
111112

113+
# This verifies the sort order of the example in `README.md`
112114
def test_readme_examples
113115
readme_versions = ["1.0.9", "2.0", "1.0.10", "1.0.3", "2.0.pre"]
114116
sorted = ["1.0.3", "1.0.9", "1.0.10", "2.0.pre", "2.0"]

0 commit comments

Comments
 (0)