File: test_align.py

package info (click to toggle)
python-inline-snapshot 0.23.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,116 kB
  • sloc: python: 6,888; makefile: 34; sh: 28
file content (10 lines) | stat: -rw-r--r-- 309 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
from inline_snapshot import snapshot
from inline_snapshot._align import add_x
from inline_snapshot._align import align


def test_align():
    assert align("iabc", "abcd") == snapshot("dmmmi")

    assert align("abbc", "axyc") == snapshot("mddiim")
    assert add_x(align("abbc", "axyc")) == snapshot("mxxm")