From f1bc9307661a91c7cd41f6920338eb1a8cf003b7 Mon Sep 17 00:00:00 2001 From: Asko Nomm Date: Thu, 7 Apr 2022 12:56:12 +0200 Subject: Fix tests --- test/clarktown/core_test.clj | 5 +++-- test/clarktown/parsers/code_block_test.clj | 10 ++++++---- 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'test') diff --git a/test/clarktown/core_test.clj b/test/clarktown/core_test.clj index c4b5ee1..27cfa1e 100644 --- a/test/clarktown/core_test.clj +++ b/test/clarktown/core_test.clj @@ -1,10 +1,11 @@ (ns clarktown.core-test (:require [clojure.test :refer [deftest testing is]] + [clojure.java.io :as io] [clarktown.core :as core])) (deftest overall-test (testing "Overall" - (is (= (core/render (slurp "./resources/test/core.md")) - (slurp "./resources/test/core_result.html"))))) \ No newline at end of file + (is (= (core/render (slurp (io/file (io/resource "test/core.md")))) + (slurp (io/file (io/resource "test/core_result.html"))))))) \ No newline at end of file diff --git a/test/clarktown/parsers/code_block_test.clj b/test/clarktown/parsers/code_block_test.clj index 1bd51b2..20b69aa 100644 --- a/test/clarktown/parsers/code_block_test.clj +++ b/test/clarktown/parsers/code_block_test.clj @@ -1,9 +1,11 @@ (ns clarktown.parsers.code-block-test - (:require [clojure.test :refer [deftest testing is]] - [clarktown.parsers.code-block :as code-block])) + (:require + [clojure.test :refer [deftest testing is]] + [clojure.java.io :as io] + [clarktown.parsers.code-block :as code-block])) (deftest code-block-test (testing "Code block" - (is (= (slurp "./resources/test/parsers/code_block_result.html") - (code-block/render (slurp "./resources/test/parsers/code_block.md") nil))))) \ No newline at end of file + (is (= (slurp (io/file (io/resource "test/parsers/code_block_result.html"))) + (code-block/render (slurp (io/file (io/resource "test/parsers/code_block.md"))) nil))))) \ No newline at end of file -- cgit v1.2.3