From 04ac178d6839a0fd1f12d63a739e3299fe6cf3b9 Mon Sep 17 00:00:00 2001 From: Andy Davidoff Date: Sat, 15 Feb 2020 21:50:39 -0500 Subject: fix names on case-sensitive filesystems Without this change, I was unable to pass the tests on Linux with a case-sensitive filesystem. --- src/FeedNim.nim | 8 ++++---- tests/test_atom | Bin 707128 -> 806600 bytes tests/test_atom.nim | 4 ++-- tests/test_jsonfeed | Bin 612136 -> 696872 bytes tests/test_jsonfeed.nim | 4 ++-- tests/test_rss | Bin 480488 -> 555776 bytes tests/test_rss.nim | 4 ++-- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/FeedNim.nim b/src/FeedNim.nim index be9832d..f6fc9cd 100644 --- a/src/FeedNim.nim +++ b/src/FeedNim.nim @@ -1,8 +1,8 @@ import httpclient -import feednim/atom -import feednim/rss -import feednim/jsonfeed +import FeedNim/atom +import FeedNim/rss +import FeedNim/jsonfeed proc loadAtom*(filename: string): Atom = ## Loads the Atom from the given ``filename``. var Atom: string = readFile(filename) # Load the data from the file. @@ -30,4 +30,4 @@ proc loadJsonFeed*(filename: string): JsonFeed = ## Loads the JSONFeed from the proc getJsonFeed*(url: string): JsonFeed = ## Gets the JSONFeed over from the specified ``url``. var jsonFeed: string = newHttpClient().getContent(url) # Get the data. - return parseJSONFeed(jsonFeed) \ No newline at end of file + return parseJSONFeed(jsonFeed) diff --git a/tests/test_atom b/tests/test_atom index e1e300a..8bcc13e 100755 Binary files a/tests/test_atom and b/tests/test_atom differ diff --git a/tests/test_atom.nim b/tests/test_atom.nim index 3b8a4c7..4690af1 100644 --- a/tests/test_atom.nim +++ b/tests/test_atom.nim @@ -9,8 +9,8 @@ import unittest import marshal -import feednim -import ../src/feednim/atom +import FeedNim +import ../src/FeedNim/atom test "Read Valid Atom Feed": let feed = "./tests/test_atom.xml".loadAtom() diff --git a/tests/test_jsonfeed b/tests/test_jsonfeed index 6e809a1..4d880b1 100755 Binary files a/tests/test_jsonfeed and b/tests/test_jsonfeed differ diff --git a/tests/test_jsonfeed.nim b/tests/test_jsonfeed.nim index 55757a0..3bbf95f 100644 --- a/tests/test_jsonfeed.nim +++ b/tests/test_jsonfeed.nim @@ -9,8 +9,8 @@ import unittest import marshal -import feednim -import ../src/feednim/jsonfeed +import FeedNim +import ../src/FeedNim/jsonfeed test "Read Valid JsonFeed": let feed = "./tests/test_jsonfeed.json".loadJsonFeed() diff --git a/tests/test_rss b/tests/test_rss index 9d81d79..45a6723 100755 Binary files a/tests/test_rss and b/tests/test_rss differ diff --git a/tests/test_rss.nim b/tests/test_rss.nim index b5dc044..3e134b1 100644 --- a/tests/test_rss.nim +++ b/tests/test_rss.nim @@ -9,8 +9,8 @@ import unittest import marshal -import feednim -import ../src/feednim/Rss +import FeedNim +import ../src/FeedNim/rss test "Read Valid Rss Feed": let feed = "./tests/test_rss.xml".loadRss() -- cgit v1.2.3