|
1590 | 1590 | [:value (str "[{:a 0, :bb \"000\", :ccc [[]]}\n"
|
1591 | 1591 | " {:a -1, :bb \"111\", :ccc [1]}\n"
|
1592 | 1592 | " {:a 2, :bb \"222\", :ccc [1 2]}]") 8]
|
1593 |
| - [:newline]] |
| 1593 | + [:newline] [:newline]] |
1594 | 1594 | (section "Contents" rendered))
|
1595 |
| - (is (nil? (section "View mode" rendered)))))) |
| 1595 | + (is+ ["--- View mode:" [:newline] " :pretty"] |
| 1596 | + (section "View mode" rendered))))) |
1596 | 1597 |
|
1597 | 1598 | (deftest pretty-print-map-in-object-view-test
|
1598 | 1599 | (testing "in :object view mode + :pretty, Value: is printed regularly"
|
|
1639 | 1640 | "\"222\", :ccc (2 1)}\n {:a -3, :bb \"333\", "
|
1640 | 1641 | ":ccc (3 2 1)}\n {:a -4, :bb \"444\", "
|
1641 | 1642 | ":ccc (4 3 2 1)})}") 2]
|
1642 |
| - [:newline]] |
| 1643 | + [:newline] [:newline]] |
1643 | 1644 | (section "Contents" rendered))
|
1644 |
| - (is (nil? (section "View mode" rendered)))))) |
| 1645 | + (is+ ["--- View mode:" [:newline] " :pretty"] |
| 1646 | + (section "View mode" rendered))))) |
1645 | 1647 |
|
1646 | 1648 | (deftest pretty-print-map-as-key-test
|
1647 | 1649 | (testing "in :pretty view-mode maps that contain maps as a keys are pretty printed"
|
|
1677 | 1679 | ":bb \"222\", :ccc [2 1]}\n {:a -3, :bb "
|
1678 | 1680 | "\"333\", :ccc [3 2 1]}\n {:a -4, :bb "
|
1679 | 1681 | "\"444\", :ccc [4 3 2 1]}]}") 2]
|
1680 |
| - [:newline] [:newline]] |
| 1682 | + [:newline] [:newline] [:newline]] |
1681 | 1683 | (section "Contents" rendered))
|
1682 |
| - (is (nil? (section "View mode" rendered)))))) |
| 1684 | + (is+ ["--- View mode:" [:newline] " :pretty"] |
| 1685 | + (section "View mode" rendered))))) |
1683 | 1686 |
|
1684 | 1687 | (deftest pretty-print-seq-of-map-as-key-test
|
1685 | 1688 | (testing "in :pretty view-mode maps that contain seq of maps as a keys are pretty printed"
|
|
1707 | 1710 | "[{:a 0, :bb \"000\", :ccc [[]]}\n {:a -1, "
|
1708 | 1711 | ":bb \"111\", :ccc [1]}\n {:a 2, :bb \"222\", "
|
1709 | 1712 | ":ccc [1 2]}]}") 2]
|
1710 |
| - [:newline] [:newline]] |
| 1713 | + [:newline] [:newline] [:newline]] |
1711 | 1714 | (section "Contents" rendered))
|
1712 |
| - (is (nil? (section "View mode" rendered)))))) |
| 1715 | + (is+ ["--- View mode:" [:newline] " :pretty"] |
| 1716 | + (section "View mode" rendered))))) |
1713 | 1717 |
|
1714 | 1718 | (deftest tap-test
|
1715 | 1719 | (testing "tap-current-value"
|
|
0 commit comments