Debian Codegraph @

debian/tests/match

raw
1 #!/bin/bash
2 set -ex
3 export LC_ALL=C.UTF-8
4 strokes='[[137.7, 17.85, 33.15, 243.525], [91.8, 107.7375, 224.4, 228.8625]]'
5 best_match="$(python3 -c "
6 from kanjidraw.lib import matches
7 print(next(matches($strokes))[1])
8 ")"
9 test "$best_match" = 人