summaryrefslogtreecommitdiff
path: root/test/clarktown/matchers/indented_code_block_test.clj
blob: beffcaad6e6bab0c1c35ac088a5e9ec3ce72d56c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
(ns clarktown.matchers.indented-code-block-test
  (:require
    [clojure.test :refer [deftest testing is]]
    [clarktown.matchers.indented-code-block :as code-block]))


(deftest indented-code-block-matcher-test
  (testing "Checking a indented code block"
    (is (true? (code-block/match? "    blabla")))
    (is (true? (code-block/match? "    abc\n     dfg\n    blabla")))
    (is (false? (code-block/match? "    abc\n   asdasd")))))