1{-# LANGUAGE NamedFieldPuns #-}
2module VerifyImageTrans where
4import Verify.Graphics.Vty.Image
6import Graphics.Vty.Image.Internal
12is_horiz_text_of_columns :: Image -> Int -> Bool
13is_horiz_text_of_columns (HorizText { output_width = in_w }) expected_w = in_w == expected_w
14is_horiz_text_of_columns (BGFill { output_width = in_w }) expected_w = in_w == expected_w
15is_horiz_text_of_columns _image _expected_w = False
17verify_horiz_contat_wo_attr_change_simplifies :: SingleRowSingleAttrImage -> Bool
18verify_horiz_contat_wo_attr_change_simplifies (SingleRowSingleAttrImage _attr char_count image) =
19 is_horiz_text_of_columns image char_count
21verify_horiz_contat_w_attr_change_simplifies :: SingleRowTwoAttrImage -> Bool
22verify_horiz_contat_w_attr_change_simplifies ( SingleRowTwoAttrImage (SingleRowSingleAttrImage attr0 char_count0 _image0)
23 (SingleRowSingleAttrImage attr1 char_count1 _image1)
26 | char_count0 == 0 || char_count1 == 0 || attr0 == attr1 = is_horiz_text_of_columns i (char_count0 + char_count1)
27 | otherwise = False == is_horiz_text_of_columns i (char_count0 + char_count1)
31 [ verify "verify_horiz_contat_wo_attr_change_simplifies" verify_horiz_contat_wo_attr_change_simplifies
32 , verify "verify_horiz_contat_w_attr_change_simplifies" verify_horiz_contat_w_attr_change_simplifies
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list