mirror of
https://github.com/hkalexling/Mango.git
synced 2026-04-24 00:03:12 -04:00
Add chapter sort
This commit is contained in:
@@ -34,3 +34,10 @@ describe "compare_numerically" do
|
||||
}.should eq ary
|
||||
end
|
||||
end
|
||||
|
||||
describe "chapter_sort" do
|
||||
it "sorts correctly" do
|
||||
ary = ["Vol.1 Ch.01", "Vol.1 Ch.02", "Vol.2 Ch. 2.5", "Ch. 3", "Ch.04"]
|
||||
chapter_sort(ary.reverse).should eq ary
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user